0

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 enter image description here

Dhaval Patel
  • 300
  • 1
  • 11

2 Answers2

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
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