-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[RN Mobile] Unsupported block bottom sheet is triggered when device is rotated #13052 #25873
[RN Mobile] Unsupported block bottom sheet is triggered when device is rotated #13052 #25873
Conversation
Size Change: 0 B Total Size: 1.19 MB ℹ️ View Unchanged
|
…_triggered_when_device_is_rotated
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.
Tested via both WPAndroid and WPiOS, and this is working well for me, but let's wait to hear what @guarani thinks before merging this because I know he's testing this as well.
It certainly makes it a bit confusing to have Android and iOS handle the BottomSheet differently during rotation. From what I can see it seems like Android calls the onClose
function during rotation, whereas iOS does not. Just wanted to note that here for future me. 🙂
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.
I left a comment, but this is working (tested on Android emulator).
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.
@marecar3 and I agreed #25873 (comment) will be best left to a future PR, and fixed along with a similar issue here: #25265 (comment)
Yes and it could be a reason that maybe iOS doesn't recreate the View on rotation. |
Fixes: wordpress-mobile/WordPress-Android#13052
Gutenberg Mobile PR: wordpress-mobile/gutenberg-mobile#2710
How has this been tested?
Checklist: