Add setImmediate polyfill to web, fixing dropdown items
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import 'platform/polyfills'
|
||||||
import {AppRegistry} from 'react-native'
|
import {AppRegistry} from 'react-native'
|
||||||
import App from './src/App'
|
import App from './src/App'
|
||||||
import {name as appName} from './src/app.json'
|
import {name as appName} from './src/app.json'
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// index.web.js
|
// index.web.js
|
||||||
|
|
||||||
|
import 'platform/polyfills'
|
||||||
import {AppRegistry} from 'react-native'
|
import {AppRegistry} from 'react-native'
|
||||||
import App from './src/App'
|
import App from './src/App'
|
||||||
import {name as appName} from './src/app.json'
|
import {name as appName} from './src/app.json'
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
import '@zxing/text-encoding' // TextEncoder / TextDecoder
|
|
||||||
@@ -1,2 +1 @@
|
|||||||
// do nothing
|
|
||||||
export {}
|
export {}
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
/// <reference lib="dom" />
|
||||||
|
|
||||||
|
// @ts-ignore whatever typescript wants to complain about here, I dont care about -prf
|
||||||
|
window.setImmediate = (cb: () => void) => setTimeout(cb, 0)
|
||||||
Reference in New Issue
Block a user