I am pretty new to react-native development, I have a project which run properly with iOS simulator, while on android (Emulator and device) it gives Unexpected token '>' error
Asked
Active
Viewed 58 times
0

Dhaval Patel
- 300
- 1
- 11
-
check the error in node terminal... and provide that error – Jay Thummar Aug 21 '18 at 10:37
-
I was searching this error, and somewhere a error resembling i found was due to react-native-facebook-login npm package used in project.. ??? Is this possible ? – Dhaval Patel Aug 21 '18 at 13:28
2 Answers
0
Try to change "android" folder name to "android-backup"
And run following in the terminal:
$cd MyProjectFolder
$npm start
$react-native start
this work refresh your android project.
also you can clean gradlew with:
$cd android
$gradlew clean

morteza ataiy
- 541
- 4
- 12
-
did many a times- not working. also did react-native update after deleting android module. – Dhaval Patel Aug 21 '18 at 13:27
-
you can see file and line number of error in error massage. Or in details. Please see and get the line that have error. – morteza ataiy Aug 25 '18 at 17:04
0
try this
Open Terminal
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
react-native run-android

Vishal Vaghasiya
- 4,618
- 3
- 29
- 40
-
tried, didn't work. its some kind of jsx syntax error, but the thing is for iOS it runs fine, I have also checked every Platform.OS condition. TY – Dhaval Patel Aug 24 '18 at 11:27