-
Notifications
You must be signed in to change notification settings - Fork 454
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (25 loc) · 1.21 KB
/
index.js
File metadata and controls
31 lines (25 loc) · 1.21 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
import "react-native-get-random-values";
// Injects node.js shims.
// https://github.com/parshap/node-libs-react-native
import "node-libs-react-native/globals";
// Fix for crash with `Unsupported top level event type "onGestureHandlerStateChange" dispatched`
// https://github.com/kmagiera/react-native-gesture-handler/issues/320#issuecomment-443815828
import "react-native-gesture-handler";
/** URL polyfill */
// URL object `intentionally` lightweight, does not support URLSearchParams features
// https://github.com/facebook/react-native/issues/23922
import "react-native-url-polyfill/auto";
// cosmjs use TextEncoder that's not available in React Native but on Node
import "text-encoding-polyfill";
// Initialize MSW for mocking API calls (only in development when MSW_ENABLED=true)
if (process.env.MSW_ENABLED === "true") {
// eslint-disable-next-line @typescript-eslint/no-var-requires
require("./src/mocks/init");
}
import { AppRegistry } from "react-native";
import App from "./src";
import logReport from "./src/log-report";
import { initDevServerAutoReload } from "./src/hooks/useDevServerAutoReload";
logReport.logReportInit();
initDevServerAutoReload();
AppRegistry.registerComponent("ledgerlivemobile", () => App);