android fix

This commit is contained in:
Feruz 2018-11-20 12:28:44 +02:00
parent 81319d1b35
commit f72efc55d6

View File

@ -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}>