Kureev / react-native-blur

React Native Blur component
MIT License
3.77k stars 557 forks source link

Blurview cannot contain any child view on Android #335

Open Doha26 opened 4 years ago

Doha26 commented 4 years ago

use this Library to have a vertical swipe on a sample App I have made. it's working very fine on an iOS device but I got an error while running on Android Device. please look at the screenshot

Capture d’écran 2019-10-31 à 21 17 22
g3r4n commented 4 years ago

That's a limitation written down here : https://github.com/react-native-community/react-native-blur#android

The Android library introduces some limitations:

BlurView cannot be a child of the view that is being blurred (this would cause an infinite loop) BlurView cannot contain any child components.

Daavidaviid commented 4 years ago

Hi, This PR is gonna take care of it : https://github.com/react-native-community/react-native-blur/pull/358 no more need for viewRef on Android AND BlurView can have children now.

canpoyrazoglu commented 4 years ago

Same here. Why on Earth does the "working example for both iOS and Android" has child inside the blur view then?

skizzo commented 4 years ago

This issue might as well be closed, I just ran into the same error using version 3.4.1, updating it to 3.6.0 gets rid of it. Well done, thanks to all the contributors!

BarkhaArora commented 4 years ago

updated to 3.6.0 still having same issue.

xwg2015 commented 4 years ago

updated to 3.6.0 still having same issue.