-
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
Undefined not an object (_reactNative.nativeModules.RNSnackbar,.LENGTH.LONG_ #29
Comments
Same with mine too. |
Hmm, it works for me on that version, both iOS and Android. Have you
rebuilt and restarted your packager after linking? Try clearing all your
caches and building your app from scratch just in case.
E.g. clean absolutely everything then `react-native run-android`.
|
Ok, i would do that |
The problem still persists after cleaning the project in Android studio, deleting node_modules and doing I've recently upgraded to RN 0.42.3 from 0.38, getting |
This looks like a link error. @Jazz747 After you |
I did, result: Manual install instructions would be helpful, I see the snackbar inclusion in |
Yes it should be in import com.azendoo.reactnativesnackbar.SnackbarPackage;
// Then in class
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new SnackbarPackage(),
);
} |
Yep, that fixed it :) I've had multiple problems in the past with linking of libraries, had to do it manually, so it would be cool if there were manual installation instructions on the main page also. Cheers! |
I'm somewhat unfamiliair on how to create pull requests since I'm new to Github, so I'll just make it here, in hopes that @cooperka can paste it into the description section if he wants to. In
In
In
|
@Jazz747 Made a video showing you how! https://www.useloom.com/share/3f9227d502a54ff3b049e8b2d5fc1327 |
Wow man, my own personal instructional video :D I thought I had to git pull the entire project, make changes there and push. This is totally easy :) appreciate the effort, doing it now ;) |
I am having the same problem on iOS. Any help ? |
@haseebnaseem have you tried the solutions suggested above? There are several things which could be wrong, usually fixed by cleaning all your caches and starting fresh. |
@cooperka yes I have tried. Nothing works. |
@haseebnaseem Are you able to install and run the example app? |
@cooperka |
Hmm, is it possible you have some custom configuration on your machine? Do other projects work for you? Make sure you've run |
I had the same problem on iOS, I ran the |
@cooperka meet the same issue. Please add reference to the bottom of the readme in the top. Updating gradle helped me, but I first read all these threads about this error, before finding real solution at the bottom of readme. |
Note that this is currently documented on the README here, please refer all comments to #43. I'm going to lock this issue in order to unify the conversation there. Thanks! |
On app start, crashes a few seconds later
RN 0.42.3, linked, error appears when putting the import statement in JS
The text was updated successfully, but these errors were encountered: