-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
50 lines (45 loc) · 1.25 KB
/
App.js
File metadata and controls
50 lines (45 loc) · 1.25 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
42
43
44
45
46
47
48
49
50
import React, { Component } from 'react';
import { StatusBar, Button, } from 'react-native';
import { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';
import Navigator from './src/navigation';
import NavigationService from './src/navigation/NavigationService';
//import { pushNotification }from './src/notification/remote/pushNotification';
import { Provider } from 'mobx-react';
import stores from './src/stores';
const theme = {
...DefaultTheme,
roundness: 2,
colors: {
...DefaultTheme.colors,
primary: '#1A237E',
accent: '#f1c40f'
}
};
//pushNotification.configure();
export default class App extends Component {
constructor(props) {
super(props);
this.state = {time : 5};
}
// handleOnPress = () =>{
// pushNotification.localNotification();
// }
render() {
return (
// <View>
// <Button
// title={'Notification'}
// onPress = {handleOnPress}/>
<Provider {...stores}>
<PaperProvider theme={theme}>
<StatusBar barStyle="light-content" />
<Navigator
ref={navigatorRef => {
NavigationService.setTopLevelNavigator(navigatorRef);
}}/>
</PaperProvider>
</Provider>
// </View>
);
}
}