forked from agrcrobles/react-native-web-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.web.js
More file actions
30 lines (20 loc) · 660 Bytes
/
index.web.js
File metadata and controls
30 lines (20 loc) · 660 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
// @flow
import React from 'react';
import { AppRegistry } from 'react-native';
import Navigation from './src/navigation';
import { AppContainer } from 'react-hot-loader';
const renderApp = () => <AppContainer>
<Navigation />
</AppContainer>;
AppRegistry.registerComponent('ReactNativeWebBoilerplate', () => renderApp);
if (module.hot) {
// $FlowFixMe
module.hot.accept();
const renderHotApp = () => <AppContainer>
<Navigation />
</AppContainer>;
AppRegistry.registerComponent('ReactNativeWebBoilerplate', () => renderHotApp);
}
AppRegistry.runApplication('ReactNativeWebBoilerplate', {
rootTag: document.getElementById('root')
});