-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
34 lines (27 loc) · 803 Bytes
/
App.js
File metadata and controls
34 lines (27 loc) · 803 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
31
32
33
34
import React, { Component } from 'react';
import { SafeAreaView, View } from 'react-native';
import { Provider } from 'react-redux';
import LinkerRouter from 'components/linkerRouter';
import configStore from 'configs/configStore';
import scenes from 'configs/configRoute';
import { globalColors } from 'configs/globalStyles';
let store = null;
type Props = {};
export default class App extends Component<Props> {
constructor(props) {
super(props);
this.init();
}
async init() {
store = configStore({ });
}
render() {
return (
<SafeAreaView style={{ flex: 1, backgroundColor: globalColors.white, }}>
<Provider store={store}>
<LinkerRouter scenes={scenes} scheme={'ReactNativeTemplate'} />
</Provider>
</SafeAreaView>
);
}
}