React Native App Crashes on Launch Screen on Device

React-Native production app crashes all of sudden

Also you could try to integrate Crashlytics into your app. It is free and will send you detailed information about any crashes and hang-ups in your app.

react-native app is crashing on launch screen

I'm using react-native-navigation for my app.
After hours I found my problem.
In my AppDelgate.m I forgot to remove some line of codes depending on this source
.

So after updating the AppDelegate.m file and creating a new bundle, Everything is ok.

React Native just crashes after splash screen

I was able to access the MacOS logs by going to spotlight and typing in console, clearing out the console and then observing it as I attempted to open the app within the simulator.

There will be a lot to look over as with most logs, but the error message that is a good starting point:

Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Cannot create styled-component for component: [object Object]', reason: 'Unhandled JS Exception: Cannot create styled-component for component: [object Object]

App Crashes on Splash Screen on Android 7 React Native

The issue has been solved, basically what I did earlier was that I Placed splash_screen.png in the drawable folder which worked perfectly for Android 7+ but was causing problems for Android 7 and lower.

So I placed the same splash_screen.png in all mipmaps folders and referred to mipmaps as follows in the launch_screen.xml file.

android:src="@mipmap/launch_screen"

After that splash screen worked perfectly for all the versions. Thanks



Related Topics



Leave a reply



Submit