Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null is not an object (evaluating 'sheetsQueueRef.current[sheetsQueueRef.current.length - 1].ref.current.minimize') #292

Closed
chybisov opened this issue Feb 15, 2021 · 5 comments · Fixed by #315
Assignees
Labels
bug Something isn't working v3 Written in Reanimated v2

Comments

@chybisov
Copy link

chybisov commented Feb 15, 2021

Bug

I'm trying to use BottomSheetModal and it crashes with this error.
image

Environment info

Library Version
@gorhom/bottom-sheet 3.3.1
react-native 0.63.4
react-native-reanimated 2.0.0-rc0
react-native-gesture-handler 1.10.0
typescript 4.1.5

Steps To Reproduce

  1. Add BottomSheetModalProvider to the root App component.
  2. Use BottomSheetModal on some screen in the app.
  3. Go to that screen and present/dismiss BottomSheetModal a couple of times, then go back to previous screen and return back to screen with BottomSheetModal and it crashes.

Code

const SNAP_POINTS = [260];

<BottomSheetModal
        ref={bottomSheetModalRef}
        index={0}
        snapPoints={SNAP_POINTS}
        handleComponent={BottomSheetHandle}
        backdropComponent={BottomSheetBackdrop}
        backgroundComponent={BottomSheetBackground}
        onDismiss={onDismiss}
      >
...
      </BottomSheetModal>
@chybisov chybisov added the bug Something isn't working label Feb 15, 2021
@github-actions
Copy link

@chybisov: hello! 👋

This issue is being automatically closed because it does not follow the issue template.

@theohdv
Copy link

theohdv commented Feb 16, 2021

Got the same crash on v2.2.0

@gorhom
Copy link
Owner

gorhom commented Feb 20, 2021

@theohdv could you create another issue for v2, thanks

@gorhom
Copy link
Owner

gorhom commented Mar 4, 2021

this should be fixed with v3.3.2 👍

@gorhom gorhom closed this as completed Mar 4, 2021
@BerkeAras
Copy link

Still the same issue: TypeError: null is not an object (evaluating 'orderModalRef.current.expand')
Any ideas, @gorhom? 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3 Written in Reanimated v2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants