-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
44 lines (40 loc) · 1.05 KB
/
Copy pathApp.js
File metadata and controls
44 lines (40 loc) · 1.05 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
//TODO: import firebase
import * as firebase from 'firebase'
// set up react navigation
import {createAppContainer} from 'react-navigation'
import {createStackNavigator} from 'react-navigation-stack'
//TODO: import four screens
import HomeScreen from './screens/HomeScreen'
import AddNewContact from './screens/AddNewContact'
import ViewContact from './screens/ViewContact'
import EditContact from './screens/EditContact'
const MainNavigator = createStackNavigator(
{
Home: { screen: HomeScreen },
Add: { screen: AddNewContact },
View: { screen: ViewContact },
Edit: { screen: EditContact }
},
{
defaultNavigationOptions: {
headerTintColor: "#fff",
headerStyle: {
backgroundColor: "#B83227"
},
headerTitleStyle: {
color: "#fff"
}
}
}
);
const App = createAppContainer(MainNavigator);
//TODO: Initialize Firebase
// Initialize Firebase
//FirebaseTODO create firebase real-time database with rules
// {
// "rules": {
// ".read": true,
// ".write": true
// }
// }
export default App;