osdnk / react-native-reanimated-bottom-sheet

Highly configurable bottom sheet component made with react-native-reanimated and react-native-gesture-handler
MIT License
3.33k stars 327 forks source link

reanimated-bottom-sheet & react-native-reanimated #397

Open lucaadev opened 1 year ago

lucaadev commented 1 year ago

After updating my expo app to version 49, I also had to update react-native-reanimated to version 3.3.0. However, when trying to access the screen where my bottomSheet is, the following error appears: TypeError: Cannot read property 'prototype' of undefined

This error is located at: in BottomSheetBehavior (created by ModalAgendamento) in RNGestureHandlerRootView (created by GestureHandlerRootView) in GestureHandlerRootView (created by ModalAgendamento) in ModalAgendamento (created by Home) in Home (created by SceneView) in StaticContainer in EnsureSingleNavigator (created by SceneView) in SceneView (created by SceneView) in RCTView (created by View) in View (created by DebugContainer) in DebugContainer (created by MaybeNestedStack) in MaybeNestedStack (created by SceneView) in RCTView (created by View) in View (created by SceneView) in RNSScreen in Unknown (created by InnerScreen) in Suspender (created by Freeze) in Suspense (created by Freeze) in Freeze (created by DelayedFreeze) in DelayedFreeze (created by InnerScreen) in InnerScreen (created by Screen) in Screen (created by SceneView) in SceneView (created by NativeStackViewInner) in Suspender (created by Freeze) in Suspense (created by Freeze) in Freeze (created by DelayedFreeze) in DelayedFreeze (created by ScreenStack) in RNSScreenStack (created by ScreenStack) in ScreenStack (created by NativeStackViewInner) in NativeStackViewInner (created by NativeStackView) in RCTView (created by View) in View (created by SafeAreaInsetsContext) in SafeAreaProviderCompat (created by NativeStackView) in NativeStackView (created by NativeStackNavigator) in PreventRemoveProvider (created by NavigationContent) in NavigationContent in Unknown (created by NativeStackNavigator) in NativeStackNavigator (created by Routes) in Routes (created by App) in EnsureSingleNavigator in BaseNavigationContainer in ThemeProvider in NavigationContainerInner (created by App) in ThemeProvider (created by PaperProvider) in RCTView (created by View) in View (created by Portal.Host) in Portal.Host (created by PaperProvider) in RNCSafeAreaProvider (created by SafeAreaProvider) in SafeAreaProvider (created by SafeAreaInsetsContext) in SafeAreaProviderCompat (created by PaperProvider) in PaperProvider (created by App) in Provider (created by App) in RCTView (created by View) in View (created by App) in App (created by withDevTools(App)) in withDevTools(App) in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer in main(RootComponent), js engine: hermes

more precisely in this line in node_modules/reanimated-bottom-sheet/lib/module/index.js:
_defineProperty(this, "tapState", new Value(0));
Frontend-dev-sarah commented 1 year ago

I got the same problem after updating to expo 49, any news ?

Frontend-dev-sarah commented 1 year ago

I got the same problem after updating to expo 49, any news ?

I end up with using another lib: https://gorhom.github.io/react-native-bottom-sheet, which works for me.

yousss commented 11 months ago

i also has faced the same issue till now.

akouaouchissam commented 8 months ago

Did you guys find any solution for this beside changing the library ?