Answers for "react native app crashing on start"

0

app keeps on crashing react native

My app kept crashing because I had changed the name of the app in a few places. 
Make sure your app name is the same everywhere. Check if the folder name in

  android/app/src/main/java/com/<appname>/MainActivity.java
  android/app/src/main/java/com/<appname>/MainApplication.java

has the same name as that of your app in manifest file in

	android/app/src/main/AndroidManifest.xml
  
  
##### Another solution ########
1. clean your build 
cd android ./gradlew clean

2. Try bundling 
./gradlew bundleRelease

3. Exit android folder 
cd ../

4. Try running 
npx react-native run-android --variant=release
Posted by: Guest on August-18-2021
0

react native app crashing on start

For those who still have a similar issue,
the key is to replace every use of View.propTypes.style with ViewPropTypes.style
(and make sure that you include a : 
import { ViewPropTypes } from 'react-native';
at the top of the file).
Posted by: Guest on September-03-2021

Code answers related to "react native app crashing on start"

Code answers related to "Javascript"

Browse Popular Code Answers by Language