forked from artsy/eigen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.android.js
More file actions
29 lines (26 loc) · 894 Bytes
/
index.android.js
File metadata and controls
29 lines (26 loc) · 894 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
global.__TEST__ = false
global.__STORYBOOK__ = false
// for more info about metaflags, look [here](/docs/metaflags.md)
let metaflags = {
startStorybook: false,
}
if (__DEV__) {
try {
const fileContents = require("./metaflags.json")
metaflags = { ...metaflags, ...fileContents }
} catch {}
}
require("./src/app/errorReporting/sentrySetup").setupSentry({ environment: "bootstrap" })
if (metaflags.startStorybook) {
global.__STORYBOOK__ = true
require("./src/storybook")
} else {
// polyfills are required for react-tracking to work properly
require("core-js/actual")
require("react-native-gesture-handler")
require("react-native-screens").enableScreens()
require("./src/app/utils/PushNotification").configure()
const { AppRegistry } = require("react-native")
const { App } = require("./src/app/AndroidApp")
AppRegistry.registerComponent("Artsy", () => App)
}