-
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
[RNMobile] Navigation in bottom-sheet #23782
Conversation
Size Change: 0 B Total Size: 1.16 MB ℹ️ View Unchanged
|
packages/components/src/mobile/bottom-sheet/navigation-screen.native.js
Outdated
Show resolved
Hide resolved
packages/components/src/mobile/bottom-sheet/navigation-container.native.js
Outdated
Show resolved
Hide resolved
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 tested this with iOS demo app and it looks good. I am only dropping some comments regarding documentation. After that I think this is ready to go.
@lukewalczak Could you test the Android side?
Overall it looks really solid! 🎉
|
Hey @lukewalczak thanks for your review!
I pushed the fix (here) could you please check it one more time? :) |
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.
Thank you for the latest changes, I tested with iOS&Android demo apps. Things look good to me. 🎉
Tested the latest changes and works as expected, no crash detected 🎉 that's really nice feature! |
Description
Main issue: wordpress-mobile/gutenberg-mobile#1884
Wordpress-iOS PR: wordpress-mobile/WordPress-iOS#14474
Wordpress-Android PR: wordpress-mobile/WordPress-Android#12455
Gutenberg-mobile PR: wordpress-mobile/gutenberg-mobile#2549
In this PR i added
react-navigation
and used it inside our Bottom-Sheet. This Pr has a long story behind. We wanted to replace the entire Bottom-Sheet toreanimated-bottom-sheet
but unfortunately, there are too many limitations so we decided to keep our current BottomSheet implementation and just add navigation inside.This PR affects all Block Settings.
I implemented some helper mechanisms that will be useful in the future while adding a new screen inside the bottom-sheet. To animate the bottom-sheet height when the navigation is inside we need to set the height of current Screen ( The visible one If we have nested navigators) so I added BottomSheet.NavigationScreen that handles the Android hardware back button and BottomSheet.NavigationContainer to animate height of it.
How has this been tested?
Screenshots
Types of changes
Add 'react-navigation' to the project and add possibilities to use it inside our bottom-sheet.
Checklist: