-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (25 loc) · 879 Bytes
/
Copy pathindex.js
File metadata and controls
31 lines (25 loc) · 879 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
30
31
/**
* @format
*/
/* global global, require */
const runtimeGlobal = global;
// RN 0.82 new-architecture startup can call PerformanceLogger before
// InitializeCore installs global.performance. This fallback must run before any
// react-native import, because static imports execute before module body code.
if (!runtimeGlobal.performance) {
runtimeGlobal.performance = {
mark: () => {},
measure: () => {},
now: () => {
const nativePerformanceNow = runtimeGlobal.nativePerformanceNow;
return typeof nativePerformanceNow === 'function'
? nativePerformanceNow()
: Date.now();
},
};
}
require('react-native/Libraries/Core/InitializeCore');
const { AppRegistry } = require('react-native');
const App = require('./App').default;
const { name: appName } = require('./app.json');
AppRegistry.registerComponent(appName, () => App);