-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Mobile bottom sheet component #13612
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
fd7c7eb
rnmobile: Implement image settings button using InspectorControls.Slo…
etoledom abdfd03
rnmobile: Add missing semicolon
etoledom 1a4e35a
rnmobile: Adding bottom-sheet component to mobile
etoledom 4352c7a
rnmobile: Styling bottom-sheet header
etoledom f132158
rnmobile: Bottom-sheet clean up
etoledom 7bd8a4f
rnmobile: Fix lint issues on bottom-sheet related code.
etoledom 541db3b
rnmobile: Fix small lint issues
etoledom b8e5dcf
rnmobile: Move inline toolbar button definition out of constant.
etoledom 92e5357
rnmobile: Remove extra white-spaces
etoledom b7236e0
revert package-lock.json changes
etoledom 4828348
Merge branch 'master' into rnmobile/bottom-sheet-component
etoledom 09582b7
rnmobile: Fix merge issue
etoledom d335a84
rnmobile: exporting component BottomSheet.Button to be used as bottom…
etoledom 67c2ffc
rnmobile: Adding BottomSheet.Cell component as an extraction for Bott…
etoledom edcd79b
Fix lint issues
etoledom fc1043a
Reverting changes to package-lock.json
etoledom bfd5832
Merge branch 'master' into rnmobile/bottom-sheet-component
etoledom 4d7a80c
Fix merge issues
etoledom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
rnmobile: Bottom-sheet clean up
- Loading branch information
commit f132158769a2339389a6327b83297bdc68633396
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This could probably be part of
BottomSheet
which would have its default style and could accept a propcontainerStyle
orstyle
to customize it.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.
Do you mean, similar to the
Button
above?To have a
Cell
kind-of component exposed from BottomSheet?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 meant more like update the
BottomSheet
render method to something like: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.
Right, the problem there is that the
buttons
orcells
are defined by the caller side. And each of those cells will have aTouchableOpacity
component. Later on we will add more cells to it:That's why I thought that maybe extracting the whole cell as a small component would be good:
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.
Oh I see, so the
TouchableOpacity
is for a "cell" I thought it was for the whole content. Yeah makes sense. I'm not sure the concept of a cell needs to be part orBottomSheet
but it looks like a nice addition at this point 👍