-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.js
26 lines (23 loc) · 807 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
import "react-native-console-time-polyfill";
import "react-native-gesture-handler/"
import {AppRegistry} from "react-native";
import App from "./src/App";
import {isDebug} from "./src/utils/debugUtils";
AppRegistry.registerComponent("sortGame", () => App);
if (isDebug()) {
const modules = require.getModules();
const moduleIds = Object.keys(modules);
const loadedModuleNames = moduleIds
.filter(moduleId => modules[moduleId].isInitialized)
.map(moduleId => modules[moduleId].verboseName);
const waitingModuleNames = moduleIds
.filter(moduleId => !modules[moduleId].isInitialized)
.map(moduleId => modules[moduleId].verboseName);
console.log(
"loaded:" +
loadedModuleNames.length +
"waiting:" +
waitingModuleNames.length
);
console.log("modules: ", loadedModuleNames.sort());
}