forked from hsjoberg/blixt-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.web.js
35 lines (29 loc) · 1017 Bytes
/
index.web.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
29
30
31
32
33
34
35
import 'setimmediate'
import { AppRegistry, LogBox, Platform, UIManager } from "react-native";
import App from "./src/App";
import AppConfig from "./app.json";
import Long from "long";
import protobuf from "protobufjs";
import { enableES5 } from "immer";
protobuf.util.Long = Long;
protobuf.configure();
enableES5();
// YellowBox.ignoreWarnings([
// // Workaround until native-base fixes their old
// "Warning: component",
// // We are putting functions in navigation route props
// "Non-serializable values were found in the navigation state",
// // Native-base doesn't have useNativeDriver for every animation
// "Animated: `useNativeDriver` was not specified"
// ]);
if (
Platform.OS === "android" &&
UIManager.setLayoutAnimationEnabledExperimental
) {
UIManager.setLayoutAnimationEnabledExperimental(true);
}
AppRegistry.registerComponent(AppConfig.name, () => App);
AppRegistry.runApplication(AppConfig.name, {
initialProps: {},
rootTag: document.getElementById('blixt-web-root'),
})