UNPKG

react-native-mock-tmp-build

Version:

A fully mocked and test-friendly version of react native

34 lines (23 loc) 550 B
/** * https://github.com/facebook/react-native/blob/master/Libraries/AppRegistry/AppRegistry.js */ const runnables = {}; const AppRegistry = { registerConfig(configs) { }, registerComponent(appKey, getComponentFunc) { return appKey; }, registerRunnable(appKey, func) { runnables[appKey] = { run: func }; return appKey; }, getAppKeys() { return Object.keys(runnables); }, runApplication(appKey, appParameters) { }, unmountApplicationComponentAtRootTag(rootTag) { }, }; module.exports = AppRegistry;