-
-
Notifications
You must be signed in to change notification settings - Fork 237
Expand file tree
/
Copy pathindex.js
More file actions
43 lines (35 loc) · 1.12 KB
/
index.js
File metadata and controls
43 lines (35 loc) · 1.12 KB
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
37
38
39
40
41
42
43
import 'react-native-gesture-handler';
import { enableScreens } from 'react-native-screens';
enableScreens();
/**
* @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, LogBox} from 'react-native';
import './shim.js';
import App from './App.tsx';
import {name as appName} from './app.json';
// Suppress red screen for known ldk-node async errors that surface as unhandled
// rejections from the native runtime (these are handled via AlertStore instead)
LogBox.ignoreLogs([
'FeerateEstimationUpdateTimeout',
'Updating fee rate estimates timed out',
'NodeException'
]);
AppRegistry.registerComponent(appName, () => App);