GithubHelp home page GithubHelp logo

undefined is not an object evaluating '_reactNativeBottomsheet2.default.showBottomSheetWithOptions' about react-native-bottomsheet HOT 10 CLOSED

clip-sub avatar clip-sub commented on June 30, 2024 2
undefined is not an object evaluating '_reactNativeBottomsheet2.default.showBottomSheetWithOptions'

from react-native-bottomsheet.

Comments (10)

jarbitlira avatar jarbitlira commented on June 30, 2024 1

I fix this issue by adding the following code to MainApplication.java

import com.clipsub.rnbottomsheet.RNBottomSheetPackage; // Import this

....
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
       new RNBottomSheetPackage() // Add this 
  );
}

I hope it help

from react-native-bottomsheet.

witalobenicio avatar witalobenicio commented on June 30, 2024

BottomSheet is always undefined in Android.
react-native: 0.48
react: 16.0.0-alpha.12
react-native-bottomsheet: 1.8.1

from react-native-bottomsheet.

AndrejGajdos avatar AndrejGajdos commented on June 30, 2024

+1

from react-native-bottomsheet.

andrea-mosk avatar andrea-mosk commented on June 30, 2024

news?

from react-native-bottomsheet.

Doko-Demo-Doa avatar Doko-Demo-Doa commented on June 30, 2024

Have you linked it yet?

react-native link react-native-bottomsheet

from react-native-bottomsheet.

Doko-Demo-Doa avatar Doko-Demo-Doa commented on June 30, 2024

Thank you, I will update the README file.

from react-native-bottomsheet.

mstfymrtc avatar mstfymrtc commented on June 30, 2024

I still get this error although I linked as mentioned in README. Any solution?

from react-native-bottomsheet.

jarbitlira avatar jarbitlira commented on June 30, 2024

@mstfymrtc you have to do what i said in a comment above

from react-native-bottomsheet.

mstfymrtc avatar mstfymrtc commented on June 30, 2024

MainApplication.java file already contain lines which you've written above.

from react-native-bottomsheet.

onmyway133 avatar onmyway133 commented on June 30, 2024

In app build.gradle, add

compile project(':react-native-bottomsheet')

Then in MainApplication.java, add

import com.clipsub.rnbottomsheet.RNBottomSheetPackage;

new RNBottomSheetPackage()

from react-native-bottomsheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.