Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run-Android Unexpected Token '*'

I've both ejected an app I am working on, and created a new app through react-native init and for both apps, whenever I run react-native run-android I get the following error.

enter image description here

Does anyone know what the issue might be? I am developing on a mac.

like image 897
Dizzykiwi Avatar asked Feb 17 '18 03:02

Dizzykiwi


1 Answers

Okay, so I finally know what was going wrong. I was using the new exponentiation operator (**), but for some reason, doesn't work well with react-native and Android. Check if you're using it and replace it with classic Math.pow(). Worked for me.

Source: https://github.com/facebook/react-native/issues/8290#issuecomment-315491051

like image 120
mguellsegarra Avatar answered Oct 19 '22 19:10

mguellsegarra