-
Notifications
You must be signed in to change notification settings - Fork 151
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
NativeModules.RNSnackbar.LENGTH_LONG - Cannot read property 'LENGTH_LONG' of undefined #74
Comments
When debug app, I add _reactNative.NativeModules.RNSnackbar is undefined, so when to set RNSnackbar on _reactNative.NativeModules? |
link information:
|
Maybe it's because you don't re-run react-native run-ios or run-android after linking the package |
Not working with Expo. ;( |
still get with error |
Working well with Expo. :) Snackbar.show({ |
I add this line to my file import {Snackbar} from 'react-native-snackbar'; nothing else. then the error happens. |
Hello, when I am writing a 'Hello world' example according to readme, I got this error
"Cannot read property 'LENGTH_LONG' of undefined"
I think it's because this expression: "LENGTH_LONG: NativeModules.RNSnackbar.LENGTH_LONG,", which in src/index.js
I used "expo": "^27.0.1" with react native version 0.55.2
I imported react-native-snackbar this way:
import * as SnackBar from 'react-native-snackbar', I think error occured when importing.
Can somebody help me on this?
The text was updated successfully, but these errors were encountered: