-
Notifications
You must be signed in to change notification settings - Fork 559
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
Blurview does not retain in constraints in android #561
Comments
Trying to debug this as well. I feel like it is working in some cases but not in others. Not sure what the difference is. |
I having the same issue |
This is the workaround you can use which will work both in android and ios. @themaxsmith |
Legend @Ragnar-Loth-brok , for reference the styles are the same as the example 'absolute' and the hideOverflow is simply 'overflow :hidden' |
I need wrap my internal toast notifications with a blurview, but in android an opaque layer is created that does not allow the background to be seen, i need help please @ibrar-web @Ragnar-Loth-brok |
Have you tried above recommended solution? @davidgvf |
In think maybe height: 'auto' is creating this issue. Try to remove height: 'auto' property from mainToast style. @davidgvf |
@Ragnar-Loth-brok i remove it, but problem continue |
Are you using ToastCustom on top of modal or overlay? @davidgvf |
ToastCustom wrap my app, if toast show, put in screen opacity @Ragnar-Loth-brok |
Can you send screenshot of your code wherever you are calling this ToastCustom component. @davidgvf |
This is my provider of toast: @Ragnar-Loth-brok |
Actually problem is with ToastProvider not the BlurView. By default ToastProvider is adding a background color with some opacity. There may be some props to change the background color or opacity. Refer to react-native-toast-notifications documentation for help. You can also cross-check whether this is a blurView issue or toast issue by replacing BlurView with View inside ToastView. If issue persists then it's a react-native-toast-notifications issue. @davidgvf |
If i don't use blur in toast, all is correct, but if i use blur inside toast, is when problem appear @Ragnar-Loth-brok |
I am not using any toast, but yes I can confirm @davidgvf issue: a full screen opac seems to be covering the screen when I use blurview (even if that blurview is in a small isolated area of the screen, as soon as it displays: entire screen is covered in a subtle dark opac view) did you manage to fix your problem since @davidgvf ? or @ibrar-web ? even with the solution provided by #561 (comment) |
Blur view working in react native ios as expected but in android components cover whole screen. I have found way around to work in android. But for that I have to create two different components for Android and iOS.
In ios creating component with blurview but in android I have to wrap it with outer and also use inner wrapper component to stop it taking full screen. Also outer wrapper overflow is hidden.
The text was updated successfully, but these errors were encountered: