Closed wilkuintheair closed 2 years ago
Hi, I am also facing the same issue. Whenever the state is changing. BottomSheet is expanding itself. Any Solution yet?
changeStateAndCloseSheet(){ setNum(Math.random()) bottomSheetRef.current.dismiss() }
Hi, I am also facing the same issue. Whenever the state is changing. BottomSheet is expanding itself. Any Solution yet?
@barmola I solved my case by using BottomSheetModal
instead of a regular BottomSheet
. And the BottomSheetModalProvider
for this should be placed somewhere above in the view hierarchy just not to be re-rendered during the animation. You can try this approach as well, I think it can work for you.
Hi, I am also facing the same issue. Whenever the state is changing. BottomSheet is expanding itself. Any Solution yet?
@barmola I solved my case by using
BottomSheetModal
instead of a regularBottomSheet
. And theBottomSheetModalProvider
for this should be placed somewhere above in the view hierarchy just not to be re-rendered during the animation. You can try this approach as well, I think it can work for you.
@wilkuintheair Fact is that i am already using BottomSheetModal and Placed BottomSheetModalProvider in my App.tsx because BottomSheet didn't worked out for me
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Same issue occurs with me
same here(
Same. I navigate from bottom sheet to a new screen and then dismiss it using a ref to bottom sheet I pass to the new screen. When state updates in the new screen, bottom sheet show on top. Also this is only happening for me on Android, iOS seems to not have this problem. I noticed this after updating react-native-gesture-handler to v2.2.0
EDIT: Updating to 4.1.5 fixed my issue
When rotating the device from portrait to landscape then back to portrait I get an issue where the bottom sheet show into view finish animating
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Issue continues here!
Bug
Bottom Sheet with
index={-1}
changes the index to 0 when parent view gets hidden and then shows up again. Also for couple of milliseconds it covers the full screen. Its state should remain the same as it was before hiding it.Environment info
Steps To Reproduce
style={{display: 'flex'}}
index={-1}
none
flex
Describe what you expected to happen:
Reproducible sample code
https://snack.expo.dev/@wilku/894059