mehcode / rn-splash-screen

A JavaScript-controlled splash-screen for React Native designed to be run directly after the native splash-screen.
MIT License
350 stars 95 forks source link

undefined is not an object (evaluating '_rnSplashScreen2.default.hide') #24

Closed esganzerla closed 8 years ago

esganzerla commented 8 years ago

I'm getting this error when I try to hide the splash-screen.

Any thoughts?

mehcode commented 8 years ago

That would mean you're not correctly configured. NativeModules.RNSplashScreen is null which indicates a native module load error. iOS or Android?

esganzerla commented 8 years ago

Android.

mehcode commented 8 years ago

Only reason for that error on Android is not having this line: https://github.com/mehcode/rn-splash-screen/blob/master/example/android/app/src/main/java/com/mehcode/reactnative/splashscreen/example/MainApplication.java#L26

Try a rebuild / run inside of Android Studio if you do have that line

esganzerla commented 8 years ago

Great, it worked!

I`ve sent a new pull request to add this part to the tutorial.

Thanks!

gausam commented 6 years ago

@mehcode Was your tip to @esganzerla's eventually included in the guide? I followed it and it resolved this issue for me.

🙏 for your wonderful ⚒ on this package!

asnad commented 6 years ago

I'm getting this on IOS can you please help?

bwoodlt commented 6 years ago

+1

bwoodlt commented 6 years ago

Any pointers as to how to fix this in iOS will be helpful. I'm having the same issue in iOS. Many thanks!