react-native-blur icon indicating copy to clipboard operation
react-native-blur copied to clipboard

Blurview cannot contain any child view on Android

Open Doha26 opened this issue 6 years ago • 6 comments

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

Doha26 avatar Oct 31 '19 20:10 Doha26

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.

g3r4n avatar Nov 26 '19 20:11 g3r4n

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.

Daavidaviid avatar Feb 29 '20 20:02 Daavidaviid

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

canpoyrazoglu avatar Mar 25 '20 10:03 canpoyrazoglu

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!

skizzo avatar Apr 15 '20 10:04 skizzo

updated to 3.6.0 still having same issue.

BarkhaArora avatar Jul 08 '20 09:07 BarkhaArora

updated to 3.6.0 still having same issue.

xwg2015 avatar Aug 28 '20 05:08 xwg2015