-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.tsx
36 lines (29 loc) · 1.1 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
global.Buffer = require('buffer').Buffer
global.btoa = global.btoa || require('base-64').encode
global.atob = global.atob || require('base-64').decode
Buffer = require('buffer').Buffer
//import 'react-native-url-polyfill/auto'
import 'expo-dev-client'
import 'react-native-url-polyfill/auto'
import { registerRootComponent } from 'expo'
import { Platform, LogBox } from 'react-native'
import { TextEncoder, TextDecoder } from 'text-encoding'
// import { TextEncoder, TextDecoder } from 'util'
import process from 'process'
import App from './App'
if (Platform.OS !== 'web') {
require('react-native-get-random-values')
LogBox.ignoreLogs([
"Warning: The provided value 'ms-stream' is not a valid 'responseType'.",
"Warning: The provided value 'moz-chunked-arraybuffer' is not a valid 'responseType'.",
])
}
// if (typeof global.TextEncoder === 'undefined') {
// global.TextEncoder = TextEncoder
// }
if (typeof global.TextDecoder === 'undefined') {
global.TextDecoder = TextDecoder
}
global.process = process
//process.env.NODE_ENV = process.env.NODE_ENV || 'development'
registerRootComponent(App)