-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
41 lines (34 loc) · 1.17 KB
/
index.js
File metadata and controls
41 lines (34 loc) · 1.17 KB
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
36
37
38
39
40
41
/**
* @format
*/
// import {AppRegistry} from 'react-native';
// import App from './App';
// import {name as appName} from './app.json';
//
// AppRegistry.registerComponent(appName, () => App);
import React, {Component} from 'react';
import {AppRegistry, AppState} from 'react-native';
import {Provider} from 'react-redux';
import store from './stores';
import AppNavigator from'./AppNavigator';
import Location from "./screens/authorized/Location/LocationScreen";
class Application extends Component {
// constructor(props) {
// super(props);
// this.appState = AppState.currentState;
// AppState.addEventListener('change', (nextAppState) => {
// console.log('appstate', nextAppState);
// if (this.appState.match(/active/) && (nextAppState === 'background' || nextAppState === 'inactive')) {
// AppRegistry.registerHeadlessTask('SomeTaskName', () => console.log('helodsfdskj'));
// }
// });
// }
render() {
return (
<Provider store={store}>
<AppNavigator/>
</Provider>
);
}
}
AppRegistry.registerComponent('LoveApp', () => Application);