folofse / androw

Shadows in React Native for Android
97 stars 16 forks source link

about New Version #5

Closed ydv0121 closed 5 years ago

ydv0121 commented 5 years ago

hello i upgrade the module on new version you changes yerterday it's totally diffrent then the previous..it's totally misbehave in old shadow styles.. the TouchableOpacity working properly superb...but can't adjust shadow i think quality of shadow also not so good like 0.0.20 version so how to use new version?

folofse commented 5 years ago

I have tweaked the shadows to be work as the shadows does in iOS and in CSS like https://www.cssmatic.com/box-shadow this means that a shadow with shadowOffset width and height 0 and a radius with 5 gets 5 around the whole component and not just on one side. This means that the shadows size increases with 5 on each side and a total size of componentSize + 5 + 5. This makes it possible to also use the shadow as a glow effect

ydv0121 commented 5 years ago

Can you please provide example of that?

ydv0121 commented 5 years ago

is there any example available? i want to apply shadow all four side of my view...please provide one example