SrBrahma / react-native-shadow-2

Cross-platform shadow for React Native. Supports Android, iOS, Web, and Expo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use `borderRadius` of `viewStyle`

rbozan opened this issue · comments

Awesome library, using it for work right now. One suggestion:

Instead of trying to get the borderRadius of the child, also try to get it of viewStyle. Currently I have to write the following:

    <Shadow viewStyle={styles.shadowContainer} radius={styles.shadowContainer.borderRadius}>

Would be nice if this was automatically done already.

commented
commented

Done! Please, test it and report any found bugs!

Added in 4.1.0, via b5a0e60