-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.web.js
35 lines (26 loc) · 845 Bytes
/
index.web.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
27
28
29
30
31
32
33
34
35
import { AppRegistry } from 'react-native';
import App from './src/App';
import app from './app.json';
/********** Start react-native-vector-icons config **********/
import Ionicons from 'react-native-vector-icons/Fonts/Ionicons.ttf';
const IoniconsStyles = `@font-face {
src: url(${Ionicons});
font-family: Ionicons;
}`;
const style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet) {
style.styleSheet.cssText = IoniconsStyles;
} else {
style.appendChild(document.createTextNode(IoniconsStyles));
}
document.head.appendChild(style);
/********** End react-native-vector-icons config **********/
if (module.hot) {
module.hot.accept();
}
AppRegistry.registerComponent(app.name, () => App);
AppRegistry.runApplication(app.name, {
initialProps: {},
rootTag: document.getElementById('root')
});