crazycodeboy / react-native-splash-screen

A splash screen for react-native, hide when application loaded ,it works on iOS and Android.
MIT License
5.61k stars 1.09k forks source link

Android app crashes after splash screen is initialized version 3.2.0 #495

Open tranvanquang opened 4 years ago

tranvanquang commented 4 years ago

Version App

react: 16.9.0 react-native: 0.61.5 react-native-splash-screen: 3.2.0

Once the application starts and the splash screen is shown, the application freezes and it is not working then. And the app auto close. But when I run app with iOS, It run perfect

I config following this document: https://medium.com/@appstud/add-a-splash-screen-to-a-react-native-app-810492e773f9

Can I help me fix this problem <3

shraddha360 commented 4 years ago

Same issue

abhaychitnis commented 4 years ago

Try adding following additional resource in colors.xml, if not already added. It worked for me.

<color name="primary_dark">#000000</color>
willpower18 commented 4 years ago

I have two apps, with same versions of react native (0.63) and rn-splash-screen (3.2.0), I have the same code inside of two apps, one work other not work.

in one the apps initialization screen freeze and the app close.

lucianobarauna commented 4 years ago

Same issue

tmenyhart commented 4 years ago

react-native: 0.63.2

For me the problem was the name of the layout file, I used different file name instead of launch_screen.xml

benjaminpearson commented 3 years ago

I'm attempting to upgrade from React Native 0.62.2 to 0.63.3 and am experiencing what looks to be same issue.

I couldn't get any of the above suggested ideas to fix this issue, any other ideas anyone has?

BiplovQss commented 3 years ago

Try adding following additional resource in colors.xml, if not already added. It worked for me.

<color name="primary_dark">#000000</color>

it helped. thanku

mradeybee commented 3 years ago

Running npx react-native link react-native-splash-screen fixed it for me.

AliRehman7141 commented 3 years ago

Commenting for solution notification.

SheddyJnr commented 3 years ago

I'm facing the same issue. I've tried all the suggestions above to no avail...