question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Usage issue: RCTBottomSheetBehaviorAndroid.Commands

See original GitHub issue

Hello, In a new project, when trying the basic example in the readme, something like:

    return (
      <CoordinatorLayout style={styles.container}>
        <View style={{ flex: 1, backgroundColor: 'transparent' }}></View>
        <BottomSheetBehavior
            ref="bottomSheet"
            peekHeight={50}
            hideable={true}
            state={BottomSheetBehavior.STATE_COLLAPSED}>
            <View></View>
        </BottomSheetBehavior>
        <FloatingActionButton ref="fab" />
      </CoordinatorLayout>
    );

I get the following error:

undefined is not an object (evaluating '_reactNative.UIManager.RCTBottomSheetBehaviorAndroid.Commands')

I have no idea where the issue is coming from.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cesardeazevedocommented, Jan 29, 2017

It seems that you didn’t setup it correctly, did you follow the manually installation? did you made the changes on the MainApplication.java, android/app/build.gradle and android/settings.gradle?

0reactions
cesardeazevedocommented, Jan 30, 2017

Yes, indeed, the recent break changes on react-native has been impossible to support old RN versions, i hope Pepperoni boilerplate update their react-native soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

cesardeazevedo/react-native-bottom-sheet-behavior - GitHub
NOTE We expose some android core components such as CoordinatorLayout , AppBarLayout , FloatingActionButton , but they are NOT meant to be general...
Read more >
BottomSheetBehavior - Android Developers
Gets the current state of the bottom sheet. Returns whether this bottom sheet should adjust it's position based on the system gesture area. ......
Read more >
Disabling User dragging on BottomSheet - Stack Overflow
I ended up writing a workaround to address this use case of dynamically disabling user dragging, whereby BottomSheetBehavior is subclassed to ...
Read more >
Android BottomSheet Example in Kotlin - GeeksforGeeks
When this bottom sheet is the open user will not be able to access the app's content. Users can at a time use...
Read more >
react-native-bottom-sheet-behavior - npm
React Native wrapper for android BottomSheetBehavior. Latest version: 2.0.0, last published: 3 years ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found