forked from stakwork/sphinx-win-linux-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
24 lines (20 loc) · 734 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
import 'react-native-gesture-handler';
import { AppRegistry, Platform } from 'react-native'
import App from './App'
import {YellowBox} from 'react-native';
YellowBox.ignoreWarnings([
'Require cycle:',
]);
// // fetch logger
// global._fetch = fetch;
// global.fetch = function (uri, options, ...args) {
// return global._fetch(uri, options, ...args).then((response) => {
// console.log('-> fetch:', { request: { uri, options, ...args }, response });
// return response;
// });
// };
AppRegistry.registerComponent('Sphinx', () => App)
// if (Platform.OS === 'web') {
// const rootTag = document.getElementById('root') || document.getElementById('main')
// AppRegistry.runApplication('Sphinx', { rootTag })
// }