react-native-bottom-sheet icon indicating copy to clipboard operation
react-native-bottom-sheet copied to clipboard

[Bug]: BottomSheetModal not opening in React Native 0.79 despite working setup

Open etoiva opened this issue 5 months ago • 5 comments

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS

What happened?

BottomSheetModal` does not open in my React Native 0.79 project, even though:

  • ref.current?.present() is called and defined
  • Using BottomSheetModalProvider at root
  • Using GestureHandlerRootView at root
  • Reanimated plugin added to babel.config.js (and placed last)
  • All versions are compatible with RN 0.79

Interestingly, @gorhom/portal works perfectly, but BottomSheetModal silently fails.

Reproduction steps

    1. Call .present() on a ref to BottomSheetModal
  1. Confirm it's defined, and log runs
  2. No visible error, but no bottom sheet appears

Reproduction sample

https://snack.expo.dev/@etoivag/bottom-sheet---issue-reproduction-template

Relevant log output


etoiva avatar Jun 10 '25 15:06 etoiva

is anyone here?

etoiva avatar Jun 11 '25 07:06 etoiva

Using <BottomSheetView/> instead of <View/> in the provided snack allows the BottomSheet to display its content. https://gorhom.dev/react-native-bottom-sheet/components/bottomsheetview

Maniae avatar Jun 11 '25 08:06 Maniae

problem is with BottomSheetModal />, BottomSheet /> works

etoiva avatar Jun 11 '25 10:06 etoiva

Looks like it works in 5.1.4, so something broke it in 5.1.5, maybe the portal changes or dependency updates?

petrbela avatar Jun 11 '25 16:06 petrbela

Experiencing a similar issue, seems like portal changes broke something. Working properly in 5.1.4 but no anymore in nexts.

rklf avatar Jun 12 '25 23:06 rklf

Also having this problem. We are also using portals separately from the bottom sheet in our app.

Removing hostName from usePortal on line 78 and the portal component on line 445 in BottomSheetModal.tsx fixes the issue.

Moving the BottomSheetModalProvider inside our root PortalProvider makes bottom sheet modals appear, but then our notifications (which use Portal) don't appear.

Obviously there is some behaviour we were relying on (BottomSheetModals going to our PortalProvider instead of the one in BottomSheetModalProvider?) however I couldn't find any combination that gets them both to work.

Downgrading to 5.1.4 fixes both

lucaslcode avatar Jun 27 '25 04:06 lucaslcode

Not sure if this will help anyone, but my issue was that I wrapped my BottomSheetModal in a Portal, which isn't necessary. Issue also started existing when updating from 6.1.4 -> 6.1.5.

So e.g. I had:

<Portal>
    <BottomSheetModal />
</Portal>

and simply removed the portal

MerijnCanvas avatar Jul 10 '25 12:07 MerijnCanvas

Anyone got a valid fix. Downgrading from 6.1.5 to 6.1.4 did not help me. Tried BottomSheetView instead of View and that did not work as well. Rn Version 0.79.0

KiranSayone avatar Jul 15 '25 08:07 KiranSayone

The same issue after upgrading from "4.6.4" to "5.1.4"/"5.1.6". Modal is not shown on the present() call. Works with dynamic sizing disabled:

enableDynamicSizing={false}
snapPoints={['1%', '70%']}

dispelpowerone avatar Jul 26 '25 10:07 dispelpowerone

@dispelpowerone https://github.com/gorhom/react-native-bottom-sheet/pull/2387

sharifhh avatar Jul 30 '25 17:07 sharifhh

The same issue after upgrading from "4.6.4" to "5.1.4"/"5.1.6". Modal is not shown on the present() call. Works with dynamic sizing disabled:

enableDynamicSizing={false}
snapPoints={['1%', '70%']}

setting false the enableDynamicSizing let me to fix it 5.1.8

pepperav avatar Aug 01 '25 13:08 pepperav

any solutions?. App crashing at methodQueue = [(id<RCTBridgeModule>)module methodQueue]; on IOS

Manikanta-duEITC avatar Aug 12 '25 10:08 Manikanta-duEITC

animationConfigs={{
        overshootClamping: false,
      }}

This works

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.

github-actions[bot] avatar Sep 18 '25 09:09 github-actions[bot]

issue is still there bot.

pranshulantz01 avatar Sep 18 '25 09:09 pranshulantz01

For me, <Portal.Provider> was already set up in my project.

before

<BottomSheet.BottomSheetModalProvider>
  <Portal.Provider>
   ...
  </Portal.Provider>
</BottomSheet.BottomSheetModalProvider>

after

<Portal.Provider>
   <BottomSheet.BottomSheetModalProvider>
   ...
  </BottomSheet.BottomSheetModalProvider>
</Portal.Provider>

Just inverted the order and it worked. This seems related to https://github.com/gorhom/react-native-bottom-sheet/commit/711ea7a5290ef485b9ba5c65eb45e28d6e495b43

devgrapher avatar Sep 25 '25 01:09 devgrapher

Hello everyone. I had the same issue now and tried all these options that were supposed to work, but nothing did, I also don't use portals in react native.

The solution stupidly enough turned out to be setting the index to 0, instead of -1 like you are supposed to for BottomSheet. This works for me with snappoint and/or enableDynamicSizing.

I hope this helps someone else finally open up the BottomSheetModal.

For the maintainers, I assume this could be an easy lead to figure out why this is happening? I'd love to resolve the issue, but looking at how many stale PR's there are I'm not sure there is a point.

Slobodan-Starcevic avatar Oct 02 '25 19:10 Slobodan-Starcevic

I think this issue is related — everything worked fine with @gorhom/bottom-sheet 5.1.4, but after upgrading to 5.1.5, the following problem appeared.

  • If I have the PortalProvider inside the BottomSheetModalProvider, the bottom sheet modals do not present
  • If the BottomSheetModalProvider is inside the PortalProvider, the components inside the Portal do not show

YaoHuiJi avatar Oct 07 '25 07:10 YaoHuiJi

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.

github-actions[bot] avatar Nov 06 '25 09:11 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Nov 12 '25 09:11 github-actions[bot]