-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
25 lines (21 loc) · 655 Bytes
/
Copy pathApp.js
File metadata and controls
25 lines (21 loc) · 655 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
import React, { Component } from "react";
import { Provider } from "react-redux";
import { withNetworkConnectivity } from "react-native-offline";
import AppNavReduxWrapper from "./app/navigation/AppNavReduxWrapper";
import configureStore from "./app/data/configureStore";
let Root = () => <AppNavReduxWrapper />;
Root = withNetworkConnectivity({
withRedux: true, // It won't inject isConnected as a prop in this case
checkConnectionInterval: 5000
})(Root);
class App extends Component<{}> {
store = configureStore;
render() {
return (
<Provider store={this.store}>
<Root />
</Provider>
);
}
}
export default App;