SOLVED! See this chain/comment: https://github.com/facebook/react-native/issues/15902#issuecomment-375521246
Add these imports at the entrypoint of your app.
// symbol polyfills
global.Symbol = require('core-js/es6/symbol');
require('core-js/fn/symbol/iterator');
// collection fn polyfills
require('core-js/fn/map');
require('core-js/fn/set');
require('core-js/fn/array/find');
Occurs only on Android, works great on iOS. When I call AuthSession.startAsync it throws this error and crashes the app. I believe it has to do with the forOf call deep below within the: return await Promise.race([openBrowserAsync(startUrl), _waitForRedirectAsync(returnUrl)]);
call.
Stack Trace:
[object Object],[object Object] is not iterable!
Stack trace:
node_modules/core-js/library/modules/_array-includes.js:19:11 in exports
node_modules/core-js/library/modules/_meta.js:13:29 in <unknown>
node_modules/core-js/library/modules/core.get-iterator-method.js:1:14 in _perform
node_modules/core-js/library/modules/_meta.js:13:20 in race
node_modules/expo/src/WebBrowser.js:66:30 in _openAuthSessionPolyfillAsync$
node_modules/regenerator-runtime/runtime.js:62:44 in tryCatch
node_modules/regenerator-runtime/runtime.js:296:30 in invoke
node_modules/regenerator-runtime/runtime.js:114:28 in <unknown>
node_modules/regenerator-runtime/runtime.js:62:44 in tryCatch
node_modules/regenerator-runtime/runtime.js:152:28 in invoke
node_modules/regenerator-runtime/runtime.js:195:17 in <unknown>
node_modules/core-js/library/modules/es6.symbol.js:142:16 in Promise
node_modules/regenerator-runtime/runtime.js:194:27 in callInvokeWithMethodAndArg
node_modules/regenerator-runtime/runtime.js:217:12 in enqueue
node_modules/regenerator-runtime/runtime.js:114:28 in <unknown>
node_modules/regenerator-runtime/runtime.js:241:8 in async
node_modules/expo/src/WebBrowser.js:56:0 in _openAuthSessionPolyfillAsync
node_modules/expo/src/WebBrowser.js:31:41 in openAuthSessionAsync$
node_modules/regenerator-runtime/runtime.js:62:44 in tryCatch
node_modules/regenerator-runtime/runtime.js:296:30 in invoke
node_modules/regenerator-runtime/runtime.js:114:28 in <unknown>
node_modules/regenerator-runtime/runtime.js:62:44 in tryCatch
node_modules/regenerator-runtime/runtime.js:152:28 in invoke
node_modules/regenerator-runtime/runtime.js:195:17 in <unknown>
node_modules/core-js/library/modules/es6.symbol.js:142:16 in Promise
node_modules/regenerator-runtime/runtime.js:194:27 in callInvokeWithMethodAndArg
node_modules/regenerator-runtime/runtime.js:217:12 in enqueue
node_modules/regenerator-runtime/runtime.js:114:28 in <unknown>
node_modules/regenerator-runtime/runtime.js:241:8 in async
node_modules/expo/src/WebBrowser.js:26:0 in openAuthSessionAsync
node_modules/expo/src/AuthSession.js:90:53 in _openWebBrowserAsync$
node_modules/regenerator-runtime/runtime.js:62:44 in tryCatch
node_modules/regenerator-runtime/runtime.js:296:30 in invoke
node_modules/regenerator-runtime/runtime.js:114:28 in <unknown>
node_modules/regenerator-runtime/runtime.js:62:44 in tryCatch
node_modules/regenerator-runtime/runtime.js:152:28 in invoke
node_modules/regenerator-runtime/runtime.js:195:17 in <unknown>
node_modules/core-js/library/modules/es6.symbol.js:142:16 in Promise
node_modules/regenerator-runtime/runtime.js:194:27 in callInvokeWithMethodAndArg
node_modules/regenerator-runtime/runtime.js:217:12 in enqueue
node_modules/regenerator-runtime/runtime.js:114:28 in <unknown>
node_modules/regenerator-runtime/runtime.js:241:8 in async
node_modules/expo/src/AuthSession.js:88:0 in _openWebBrowserAsync
node_modules/expo/src/AuthSession.js:56:40 in startAsync$
node_modules/regenerator-runtime/runtime.js:62:44 in tryCatch
node_modules/regenerator-runtime/runtime.js:296:30 in invoke
node_modules/regenerator-runtime/runtime.js:114:28 in <unknown>
node_modules/regenerator-runtime/runtime.js:62:44 in tryCatch
node_modules/regenerator-runtime/runtime.js:152:28 in invoke
node_modules/regenerator-runtime/runtime.js:195:17 in <unknown>
node_modules/core-js/library/modules/es6.symbol.js:142:16 in Promise
node_modules/regenerator-runtime/runtime.js:194:27 in callInvokeWithMethodAndArg
node_modules/regenerator-runtime/runtime.js:217:12 in enqueue
node_modules/regenerator-runtime/runtime.js:114:28 in <unknown>
node_modules/regenerator-runtime/runtime.js:241:8 in async
node_modules/expo/src/AuthSession.js:27:0 in startAsync
src/components/NotificationsModal.js:169:8 in login
node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.android.js:175:45 in touchableHandlePress
node_modules/react-native/Libraries/Components/Touchable/Touchable.js:744:34 in _performSideEffectsForTransition