Skip to content

[Bug]: TypeError: animatedIndex.get is not a function (it is undefined) #2361

Closed
@mantu-bit

Description

@mantu-bit

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

Android

What happened?

After updating the gorhum bottom sheet to v5.1.6 this error is coming, I am on expo sdk 51.

Reproduction steps

  • Just update the package and you will get this error as soon as you open the bottom sheet modal

I have followed https://gorhom.dev/react-native-bottom-sheet/

Reproduction sample

https://snack.expo.dev/@gorhum/bottom-sheet

Relevant log output

ERROR  TypeError: animatedIndex.get is not a function (it is undefined)

This error is located at:
    in BottomSheetBodyComponent (created by BottomSheet)
    in RCTView (created by View)
    in View (created by BottomSheetHostingContainerComponent)
    in BottomSheetHostingContainerComponent (created by BottomSheet)
    in BottomSheetGestureHandlersProvider (created by BottomSheet)
    in BottomSheet (created by BottomSheet)
    in PortalHostComponent (created by PortalProviderComponent)
    in PortalProviderComponent (created by BottomSheetModalProviderWrapper)
    in BottomSheetModalProviderWrapper (created by App)
    in PersistGate (created by App)
    in Provider (created by App)
    in RNGestureHandlerRootView (created by GestureHandlerRootView)
    in GestureHandlerRootView (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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions