forked from ZeusLN/zeus
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (26 loc) · 780 Bytes
/
Copy pathindex.js
File metadata and controls
33 lines (26 loc) · 780 Bytes
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
import 'react-native-gesture-handler';
/**
* @format
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/
// polyfills
import 'react-native-get-random-values';
import 'react-native-url-polyfill/auto';
import 'message-port-polyfill';
const TextEncodingPolyfill = require("text-encoding");
import Long from 'long';
import protobuf from 'protobufjs';
const applyGlobalPolyfills = () => {
Object.assign(global, {
TextEncoder: TextEncodingPolyfill.TextEncoder,
TextDecoder: TextEncodingPolyfill.TextDecoder,
});
};
applyGlobalPolyfills();
protobuf.util.Long = Long;
protobuf.configure();
import {AppRegistry} from 'react-native';
import './shim.js';
import App from './App.tsx';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);