Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find variable: Symbol #75

Closed
jeffreyvanhees opened this issue Jan 29, 2019 · 4 comments
Closed

Can't find variable: Symbol #75

jeffreyvanhees opened this issue Jan 29, 2019 · 4 comments

Comments

@jeffreyvanhees
Copy link

jeffreyvanhees commented Jan 29, 2019

Hi folks,

On a fresh project; when I export a component with export default view(ScreenName); I got the exception Can't find variable: Symbol. This only occurs in Android (emulator and real device).

Without the view()-method the error is gone.

Only the following packages are installed:

"react-easy-state": "^6.0.6",
"react-native": "0.58.3",
"react-native-gesture-handler": "^1.0.15",
"react-native-vector-icons": "^6.2.0",
"react-navigation": "^3.0.9"

What's wrong?

@jeffreyvanhees
Copy link
Author

Fixed by installing and configuring JavaScriptCore!

See https://github.com/react-native-community/jsc-android-buildscripts

@solkimicreb
Copy link
Member

Hi! I know that you solved the issue already, but I have a few questions if you don't mind 🙂(ES6 support is catching up there is a chance that you don't need a custom JSC core). Did you start the new project with Expo?

@jeffreyvanhees
Copy link
Author

Hi! No, without expo. Pure react-native

@solkimicreb
Copy link
Member

Then there is a little more wait involved. The next react-native version (v59) will likely include a modern JSC by default (facebook/react-native#19737 (comment)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants