forked from cliqz-oss/browser-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
21 lines (18 loc) · 635 Bytes
/
Copy pathindex.js
File metadata and controls
21 lines (18 loc) · 635 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { AppRegistry } from 'react-native';
import setup from './setup';
import React from 'react';
import { startup, components } from 'browser-core';
import { Offboarding } from './index-offboarding';
// set app global for debugging
const appStart = startup.then((app) => {
global.app = app;
});
// register components from config
Object.keys(components).forEach((component) => {
AppRegistry.registerComponent(component, () => class extends React.Component {
render() {
return React.createElement(components[component], { appStart });
}
});
});
AppRegistry.registerComponent('Offboarding', () => Offboarding);