AtulParmar
AtulParmar

Reputation: 4570

IOS - React Native - Unhandled JS Exception: SyntaxError

I have facing problem whenever I create a new React Native project. displayed red screen, and got following error message in the xcode console.

enter image description here

enter image description here

Upvotes: 3

Views: 3479

Answers (3)

Rajesh
Rajesh

Reputation: 7

try this

react-native init AwesomeProject

cd AwesomeProject

react-native run-ios

Upvotes: -2

sdfsdf
sdfsdf

Reputation: 5610

It could be that you are using the ** operator somewhere. Use Math.pow instead. ** is not supported when debug js remotely is disabled for some reason. https://github.com/facebook/react-native/issues/11371

Upvotes: 2

Ayalon Grinfeld
Ayalon Grinfeld

Reputation: 91

Hi I had the same problem. Found the solution in here : https://github.com/facebook/react-native/issues/11384

TL;DR : There seems to be a problem with react-native@0.39.0^

So just start the tutorial again and use: react-native init AwesomeProject --version 0.38.0.

This solved the problem for me.

Have fun

Upvotes: 4

Related Questions