-
Notifications
You must be signed in to change notification settings - Fork 35
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
"for in" and "for of" loops break React Native Android code #73
Comments
More explanation here: facebook/react-native#4676 (comment) |
Is this what is breaking the logout on android? @joncursi |
@acomito Yeah, this library doesn't really work on React Native android devices due to Android not natively supporting // index.android.js
import 'core-js/es6/symbol';
import 'core-js/fn/symbol/iterator'; But beware, doing so seems to cause other issues. |
@joncursi, I used the proposed solution at: |
This will fail on react-native 0.56.0. It will trigger |
This repository contains several instances of
for in
andfor of
which breaks code execution on React Native Android apps.Example: https://github.com/orionsoft/meteor-apollo-accounts/blob/3ce4f66b6cf294a96bb9d4c20d4ee43ecbb0a1be/client/src/store.js#L40
Attempting to login with password on android causes this error:
See a similar issue logged in the
css-to-react-native
repo: styled-components/css-to-react-native#31 - the problem was solved by eliminating these special loops in favor of more standard ES5 code.The text was updated successfully, but these errors were encountered: