From f72efc55d6ccb7e021ac75891bd765b6d4462585 Mon Sep 17 00:00:00 2001 From: Feruz Date: Tue, 20 Nov 2018 12:28:44 +0200 Subject: [PATCH] android fix --- src/index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/index.js b/src/index.js index 84e6a0fec..52a8ff87f 100755 --- a/src/index.js +++ b/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 () => (