ex-navigation
ex-navigation copied to clipboard
Unexpected token in source code

I have a boilerplate that I was able to use several times in the past. I've tried using it again today and for some reason I'm getting this error. It seems to be that the unexpected token is *, however, it's still working in my other projects that have this exact code.
Any idea how I can tackle this?
I am getting exactly the same message, having created a new react native project using react-native init xxx
and then npm i -S @exponent/ex-navigation
.
you likely have the wrong babel presets:
https://github.com/exponent/ex-navigation#installation
I changed the .babelrc file as per your comment above, but I still keep getting the error when building the android apk. Is there any additional step to perform after editing the file? Do I need to rebuild the entire project from scratch?