mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-24 17:09:13 +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
|
|| navigator.userLanguage
|
||||||
|| 'en-US';
|
|| '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 () => (
|
export default () => (
|
||||||
|
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
|
Loading…
Reference in New Issue
Block a user