-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.js
28 lines (24 loc) · 929 Bytes
/
index.js
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
import "@tbd54566975/web5-react-native-polyfills";
import "./src/utils/globals";
import "react-native-gesture-handler";
import { AppRegistry, LogBox } from "react-native";
import { App } from "./src/App";
if (__DEV__) {
LogBox.ignoreLogs([
"`useBottomSheetDynamicSnapPoints` will be deprecated",
"Provided value to SecureStore is larger than 2048 bytes. An attempt to store such a value will throw an error in SDK 35.",
"Sync failed: Error: Failed to dereference",
]);
}
if (!__DEV__) disableConsole();
const disableConsole = () => {
console.log = NOOP;
console.info = NOOP;
console.debug = NOOP;
console.warn = NOOP;
console.error = NOOP;
};
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
AppRegistry.registerComponent("main", () => App);