[v4] buttonSheet.current.close closing all sheets inside Portal
See original GitHub issueBug
BottomSheet?.current?.close() closing all opened Sheets inside Portal
Environment info
Library | Version |
---|---|
@gorhom/bottom-sheet | 4.1.0 |
@gorhom/portal | 1.0.9 |
EXPO | 42 |
react-native-reanimated | 2.2.0 |
react-native-gesture-handler | 1.10.2 |
Steps To Reproduce
- click button to set STATE_1 to true, to render BottomSheetModal_1
- click button inside BottomSheetModal_1 to set STATE_2 to render BottomSheetModal_2, then close BottomSheetModal_1 with
BottomSheetModal_1?.current?.close()
, and it close also “BottomSheetModal_2” when it is fully open …
Describe what you expected to happen:
- in Step 2 i expect CLOSE BottomSheetModal_1 and not BottomSheetModal_1 and BottomSheetModal_2
Reproducible sample code
https://snack.expo.dev/@engazan/bottom-sheet-v4-reproducible-issue-template
video example
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Bottom Sheet doesn't close when navigating to different screen
There are few ways to do it. Here are two: Add useFocusEffect that runs when your screen with BottomSheetModal is unfocused:.
Read more >PeopleTools 8.58: PS/nVision - Oracle Help Center
Using Portal Folders. ... you close Excel, PS/nVision closes automatically as well. ... This utility converts all .xls files present in the source...
Read more >Untitled
The lone gunmen episode 7, Cyanogenmod 11 samsung galaxy core, Reverse mapping in hibernate! Cleaning up itunes library windows, Cute as a button...
Read more >Version 3.2 - Release Notes - Help pages of MA Lighting ...
The new RDM sheet lists all fixtures discovered per RDM. ... All sub-fixtures of the MA Fixture have to be in the current...
Read more >Flutter Beginners Guide to using the Bottom Sheet - Medium
Just head over to #4 if you don't care about the other solutions. You wrap your Home widget of the Material App in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Engazan have you read the documentation ? https://gorhom.github.io/react-native-bottom-sheet/modal/hooks#usebottomsheetmodal
This issue was closed because it has been stalled for 5 days with no activity.