-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
28 lines (25 loc) · 701 Bytes
/
Copy pathApp.js
File metadata and controls
28 lines (25 loc) · 701 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
import React from 'react';
import { YellowBox } from 'react-native';
import EventList from './EventList';
import EventForm from './EventForm';
import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
YellowBox.ignoreWarnings([
'Warning: componentWillMount is deprecated',
'Warning: componentWillRecieveProps is deprecated',
]);
const AppNavigator = createStackNavigator({
list: {
screen: EventList,
navigationOptions: () => ({
title: 'Your Events'
})
},
form: {
screen: EventForm,
navigationOptions: () => ({
title: 'Add an Event'
})
}
});
export default createAppContainer(AppNavigator);