mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-28 10:22:38 +03:00
android fix
This commit is contained in:
parent
81319d1b35
commit
f72efc55d6
17
src/index.js
17
src/index.js
@ -54,6 +54,23 @@ const locale = (navigator.languages && navigator.languages[0])
|
||||
|| navigator.userLanguage
|
||||
|| 'en-US';
|
||||
|
||||
if (Platform.OS === 'android') {
|
||||
if (typeof Symbol === 'undefined') {
|
||||
if (Array.prototype['@@iterator'] === undefined) {
|
||||
Array.prototype['@@iterator'] = function() {
|
||||
let i = 0;
|
||||
return {
|
||||
next: () => ({
|
||||
done: i >= this.length,
|
||||
value: this[i++],
|
||||
}),
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export default () => (
|
||||
|
||||
<Provider store={store}>
|
||||
|
Loading…
Reference in New Issue
Block a user