-
Notifications
You must be signed in to change notification settings - Fork 33
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
[React native] Compatibility issue of localforage #39
Comments
When finding ways to override the localforage in react-native environment: |
As @TakLee96 has tried, this can be fixed my removing the file |
Let try to update to babel 6 to see will it resolve. |
now or later? |
consensus is later |
Upgraded to use babel6, and trigger react-native issue: facebook/react-native#5747 Since the only variable is upgrade of babel and localforage. I suggest to drop localforage deps, to see if it relate. |
Step to reproduce the error:
npm install -g react-native-cli
react-native init BuggyProject
(takes 5 minutes)package.json
to include"skygear": "github:bensonby/skygear-SDK-JS-1#0.14-test-custom-build"
insidedependencies
npm install
index.ios.js
to haveimport skygear from 'skygear'
in the first line of codereact-native run-ios
Localforage github repo has talked about installing additional dependencies for build systems, so I proceeded with installing the following (please also take a look at their
.babelrc
file):npm install --save-dev babel-plugin-system-import-transformer
npm install --save-dev babel-plugin-add-module-exports
npm install --save-dev babel-preset-es2015
npm install --save-dev babel-preset-es2015-loose
react-native run-ios
The text was updated successfully, but these errors were encountered: