-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Mask element does not fully cover the screen on Android in 9.9.3 #1097
Comments
I've made a workaround using the If anyone wants to jump in, I'm not quite the expert when it comes to native Java development on Android, but I'd be happy to give this issue a go once I've got the hang of it. |
## [9.9.8](v9.9.7...v9.9.8) (2019-09-28) ### Bug Fixes * **android:** mask height and vertical position calculation ([74b42a7](74b42a7)), closes [#1097](#1097)
🎉 This issue has been resolved in version 9.9.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [9.9.8](software-mansion/react-native-svg@v9.9.7...v9.9.8) (2019-09-28) ### Bug Fixes * **android:** mask height and vertical position calculation ([74b42a7](software-mansion/react-native-svg@74b42a7)), closes [#1097](software-mansion/react-native-svg#1097)
I found it! On one of the screens the keyboard was open because there was an input. That caused the svg to detect the previous screen height (with the keyboard still open). Fixed it by dismissing keyboard this way: Keyboard.dismiss();
requestAnimationFrame(() => navigation.navigate()); |
Bug
I am trying to do a transparent SVG overlay with a circular cutout that can dynamically appear anywhere on the page. I can achieve this on iOS using a
Mask
, but the mask fails to cover the whole screen on Android.Basically, this is the result on iOS (left) and Android (right) from the same code:
They should look the same, but they don't. This is also the result on actual devices (vivo 1808, Android 8.0; iPhone 7 Plus iOS 13.0)
Environment info
Library version: 9.9.3
Steps To Reproduce
react-native run-android
and see the result-- OR --
Modal
Mask
elementMask
element, place aRect
that covers the whole screen to force it to show (ie,width="100%" height="100%" fill="white"
)Rect
element that also covers the whole screenDescribe what you expected to happen:
Rect
inside theMask
should be shownReproducible sample code
Here is my repro
This is the code:
Extra Notes
I am also running into this issue on 9.4.0 and react-native 0.59.6, so this isn't an issue just from the latest versions.
The text was updated successfully, but these errors were encountered: