-
Notifications
You must be signed in to change notification settings - Fork 558
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
Fix multiple blur view issues #411
Conversation
Hi @Kureev can this be merged? |
Issue seems to be using two BlurView components, This PR uses the lasted update from https://github.com/Dimezis/BlurView which solves the issue, See Dimezis/BlurView#110 (comment) Used this fix with patch-package it does work, so until this will be merged here's patch file if anyone need it.
|
@zmtmaster Thanks for the patch. It works! |
Thanks for putting up the PR hopefully they merge it soon! |
Please merge it soon as this issue ruins my whole week to figure out where is the issue 😢 |
@zmtmaster thanks for the fix. Can you give a little more detailed description how to perform the fix with patch-package. I never used patch-package before & don't know what to do exactly. Big thanks in advance. |
patch-package is a NPM module that allows you to change a node_module files (ie dependents, source files, type file etc') and by creating a diff file (patch file) it can keep the changes made for the whole team to be sync, it is great for use cases like this bug we are facing that we need to keep the module working but we can not wait for the PR to be merged. you can read more about it here https://www.npmjs.com/package/patch-package |
So I'm new to react native.. how do I add this as it's not merged yet? I understand you use patch-package but if you could give more pointers on what steps are needed. Do I just add a file with that content and run patch-package command withotu arguments? If so where do I add the file? Watched a tutorial and found out I believe. Placed the edit in and gona test it. Should it work I'll make it with patch-package so the change doesnt get whiped out until the merge comes. |
@C-odes You put that snippet into a file at |
Applied the fix and patch-package. IT seemed to work but when I deleted node modules and ran yarn install. It didnt apply the patch... odd. IS there more than just applying the change, run patch-package to create the "patches" folder with the changes in it? |
You need to add |
You don't need to do that. Just force the dependency version in your android/app/build.gradle: dependencies {
implementation('com.eightbitlab:blurview:1.6.6') {
force = true
}
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
work for me too
need this mr asap, this is annoying behavior while this package is useful ^^
Hi folks! Thanks for submitting a pull request, but this library is no longer maintained. Please, consider using a community fork: |
Isn’t this @react-native-community/blur? The |
Yes? It is @react-native-community/blur |
@Kureev Can you respond to this? Why are you the owner of a community repo but you say you're not? It's concerning. Some clarity would be great, thanks. 🙂 For reference, this is what you said:
|
I'm having this problem too. Seems like it won't be fixed any time soon. And I didn't find other options. If anyone has an alternative, I would be really grateful. Edit: I found a way to resolve this: disable React Navigation animation on screens that uses BlurView. It's the only way that I found to resolve this problem without excluding BlurView from the app. I got this solution from this comment. |
Adding
Worked for me - @seancheung can you please explain why is it fixing the issue? |
Another way to resolve that is using the latest tagged version "3.6.1": Its include:
Its a shame it was not released... |
@chenop how exactly do I apply that? When I add that to my package.json and |
@Lexical-Luke nothing special - like you wrote
|
Anyone know how to fix this with iOS? Running 3.6.0, yarn says there is no 3.6.1. |
Any timeline when we're going to release/publish 3.6.1? |
this issue still happening in 3.6.1 |
I am using version 4.3.2 and still see the same issue. do I need to patch com.eightbitlab:blurview:1.6.6 or is there any new version available? also where is this hosted. build system could not find this in google as well as mavencentral. |
Dimezis just released a fix with Dimezis/BlurView#110 to address app crashes on Android when multiple blur views are in place. This PR includes the most recent version from https://github.com/Dimezis/BlurView into this project.