forked from hsjoberg/blixt-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
30 lines (26 loc) · 936 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
29
30
import "react-native-gesture-handler";
import React from "react";
import ReactNative, { AppRegistry, YellowBox, Platform, UIManager, Text } from "react-native";
import App from "./src/App";
import {name as appName} 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(appName, () => App);