-
Notifications
You must be signed in to change notification settings - Fork 18
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 bug with array response #7
Comments
I'm using RN 54 and it's working now. |
Reproducible demo:
|
@davidnum Thanks, I've never tested on Android, sorry... (only iOS) |
Can you test it? I cant discover where from this bug comes, from RN babel setup or from your transpailed code. |
Hi! This bug caused by old android jsc version in RN, ref: facebook/react-native#15902. if (Platform.OS === 'android') {
global.Symbol = require('core-js/es6/symbol');
require('core-js/fn/symbol/iterator');
} in entry point of app, ex. index.js. |
@davidnum Submit your PR to be a contributor! Welcome |
In RN throws iterate exception [object ArrayIterator is not iterable] where response is array of objects like
[{ field: 'foo', message: 'bar' }]
I think this problem around "for...of" operator for array and its polyfill. This bug isnt reproducible for usualy browser enviroment, only for RN. Can you fix it?
The text was updated successfully, but these errors were encountered: