forked from dydxprotocol/v4-native-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
23 lines (17 loc) · 684 Bytes
/
index.js
File metadata and controls
23 lines (17 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import {AppRegistry} from 'react-native';
import App from './App';
import 'react-native-get-random-values';
import {TurnkeyLogin} from './TurnkeyReact/TurnkeyLogin';
import 'react-native-url-polyfill/auto';
import { TextDecoder, TextEncoder } from 'text-encoding';
import { Buffer } from 'buffer';
if (typeof global.TextDecoder === 'undefined') {
global.TextDecoder = TextDecoder;
}
if (typeof global.TextEncoder === 'undefined') {
global.TextEncoder = TextEncoder;
}
global.Buffer = global.Buffer || Buffer;
import './TurnkeyReact/TurnkeyAddress';
AppRegistry.registerComponent('TurnkeyReact', () => App);
AppRegistry.registerComponent('TurnkeyLogin', () => TurnkeyLogin);