-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When use BlurView in Android for example in a card, when navigate these screen put white background in all screen #595
Comments
Im having the same problem! |
me too... please give me the solution |
Solved it momentairly with this issue |
@matmac not work for me, the solution is put view and into view bLURVIEW? |
I detect that when i use position aboslute in blur view, in android when navigate put opacity screen |
same here, when users are navigating back then a white overlay covers the entire app, it's totally random |
@efstathiosntonas I'm facing the same issue. Are you resolve this? |
Hey guys I'm not sure if this is the case but in your project, if you are using Stack Navigation, try disabling animation I set for only in android, and the issue has gone. Well this might not be the best solution since I had to give up the animation Effect on Android. |
Disabling animation on android is actually helped but maybe there is another workaround? |
My current workaround is to disable the blur during the transition:
|
my current workaround and it's working almost well. go to this path: node_modules/@react-native-community/blur/src/components/BlurView.android.tsx const OVERLAY_COLORS = { |
Disabling the |
It works well, good. And you can use overlayColor={"#00000000"} instead.
|
I Got another resolution.If you want to preserve the animation while using the component, you can wrap the navigate method in setTimeout(() => {}, 0). |
Any updates on this? Seems like a pretty large bug |
A (not perfect) workaround is setting blur enabled to diff --git a/node_modules/@react-native-community/blur/android/src/main/java/com/reactnativecommunity/blurview/BlurViewManagerImpl.java b/node_modules/@react-native-community/blur/android/src/main/java/com/reactnativecommunity/blurview/BlurViewManagerImpl.java
index 4444313..6fe3478 100644
--- a/node_modules/@react-native-community/blur/android/src/main/java/com/reactnativecommunity/blurview/BlurViewManagerImpl.java
+++ b/node_modules/@react-native-community/blur/android/src/main/java/com/reactnativecommunity/blurview/BlurViewManagerImpl.java
@@ -29,6 +29,10 @@ class BlurViewManagerImpl {
return blurView;
}
+ public static void onDropViewInstance(BlurView view) {
+ view.setBlurEnabled(false);
+ }
+
public static void setRadius(BlurView view, int radius) {
view.setBlurRadius(radius);
view.invalidate();
diff --git a/node_modules/@react-native-community/blur/android/src/oldarch/java/com/reactnativecommunity/blurview/BlurViewManager.java b/node_modules/@react-native-community/blur/android/src/oldarch/java/com/reactnativecommunity/blurview/BlurViewManager.java
index 1a28209..74a46f3 100644
--- a/node_modules/@react-native-community/blur/android/src/oldarch/java/com/reactnativecommunity/blurview/BlurViewManager.java
+++ b/node_modules/@react-native-community/blur/android/src/oldarch/java/com/reactnativecommunity/blurview/BlurViewManager.java
@@ -22,6 +22,12 @@ class BlurViewManager extends ViewGroupManager<BlurView> {
return BlurViewManagerImpl.createViewInstance(context);
}
+ @Override
+ public void onDropViewInstance(BlurView view) {
+ super.onDropViewInstance(view);
+ BlurViewManagerImpl.onDropViewInstance(view);
+ }
+
@NonNull
@Override
public String getName() { Problem: In a Native Stack Screen of |
it is blocking shared transition animation |
No description provided.
The text was updated successfully, but these errors were encountered: