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

ES6 doesn't work on react-native #2

Closed
holyxiaoxin opened this issue Oct 20, 2015 · 3 comments
Closed

ES6 doesn't work on react-native #2

holyxiaoxin opened this issue Oct 20, 2015 · 3 comments

Comments

@holyxiaoxin
Copy link

I was wondering how did you get

import Button from 'apsl-react-native-button'; to work. I could only use es5 syntax of importing modules.

@alvaromb
Copy link
Collaborator

Hello @holyxiaoxin! what's your Babel config?

@alvaromb
Copy link
Collaborator

Try to use a .babelrc config:

{
  "whitelist": [
    "es6.modules"
  ]
}

Source: http://wiredify.com/shohey1226/logs/React-Native-with-bebelrc

@alvaromb
Copy link
Collaborator

I'm closing the issue, let me know if you need something @holyxiaoxin :)

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