-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.js
More file actions
29 lines (26 loc) · 816 Bytes
/
index.js
File metadata and controls
29 lines (26 loc) · 816 Bytes
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
import "react-native-get-random-values";
import "node-libs-react-native/globals.js";
import { AppRegistry, LogBox } from "react-native";
import Root from "./src/Root";
import { name as appName } from "./app.json";
import {
isSslPinningAvailable,
initializeSslPinning
} from "react-native-ssl-public-key-pinning";
if (isSslPinningAvailable()) {
void initializeSslPinning({
"api.swiss-bitcoin-pay.ch": {
includeSubdomains: false,
publicKeyHashes: [
"GPC87Im4qy67XPovXRcnZlNRbNNpyuK3EWbzGPy+1+A=",
"3fLLVjRIWnCqDqIETU2OcnMP7EzmN/Z3Q/jQ8cIaAoc="
]
}
});
}
if (process.env.NODE_ENV === "production") {
LogBox.ignoreAllLogs();
} else {
LogBox.ignoreLogs(["Warning: Failed prop type: Invalid props.style key"]);
}
AppRegistry.registerComponent(appName, () => Root);