-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 is not an object (evaluating '_reactNativeSplashScreen2.default.hide') #100
Comments
I also had the exact same problem |
+1 |
Do check the android/app/src/main/java/com/appname/MainActivity.java
I screwed up the previous project so badly so I recreated a new project, it worked after I sort out the MainActivity.java. |
any solution regarding this problem, I also have the same problem. |
please take look at this issue #30 you possibly get help from there. |
Probably, it will be fix. |
This did not work on Apple TV 4K. |
@Balamir Hello sir, |
You are missing some java code either in MainActivity.java or MainApplication.java. Make sure you have
inside the MainApplication.java otherwise SplashScreen will not be exposed to react code. I had the same issue adding |
Hello @creativeaura I have already fixed the error which I was getting in my application reguarding the splash screen by following some extra steps
|
@khadkaPratik The fix I mentioned was for Android. |
please help i have the same issue and all my files are correct |
If someone give error like this in iOS can fix by the way |
Make sure you add below lines in MainApplication.java
This will fix the issue!!! Also make sure you have imported the below package |
for iOS developer, try to remove libSplashScreen.a from [Project Name -> build Phases -> Link Binary With Libraries ]. Hope it helps |
Same issue with iOS 13.1, RN 0.61.5 and this package using 3.2.0. @anhdevit and @someoneNameGrey answers sadly didn't help 🙁 |
for (ios) Remember to |
I know this issue is closed, but if someone came here hopelessly I found a simple solution: In the file
|
I found solution in my case. |
I have already configure my code just like the instruction to use the splash screen but when I compile it using my Redmi Note 3 it returns error like this:
in line of code:
react-native: "0.48.4"
react-native-splash-screen: "^3.0.1"
node: v6.11.2
npm: 5.3.0
please tell me how to handle this case.
The text was updated successfully, but these errors were encountered: