-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
34 lines (30 loc) · 1.1 KB
/
App.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
25
26
27
28
29
30
31
32
33
34
import React from 'react';
import {Provider as BountyProvider} from './src/context/BountyContext';
import {createAppContainer} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import HomeScreen from './src/screens/HomeScreen';
import BountyListScreen from './src/screens/BountyListScreen';
import BountyDetailScreen from './src/screens/BountyDetailScreen';
import BountyTipScreen from './src/screens/BountyTipScreen';
import BountyTipStatusScreen from './src/screens/BountyTipStatusScreen';
import BountyFundScreen from './src/screens/BountyFundScreen';
import BountyFundStatusScreen from './src/screens/BountyFundStatusScreen';
const navigator = createStackNavigator({
Home: HomeScreen,
BountyList: BountyListScreen,
BountyDetail: BountyDetailScreen,
BountyTip: BountyTipScreen,
BountyTipStatus: BountyTipStatusScreen,
BountyFund: BountyFundScreen,
BountyFundStatus: BountyFundStatusScreen,
}, {
initialRouteName: 'Home'
});
const App = createAppContainer(navigator);
export default () => {
return (
<BountyProvider>
<App />
</BountyProvider>
);
};