-
Notifications
You must be signed in to change notification settings - Fork 3
/
App.js
48 lines (46 loc) · 1.71 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { createStackNavigator, createAppContainer } from 'react-navigation';
//import HomeScreen from './src/screens/HomeScreen';
import ComponentsScreen from './src/screens/ComponentsScreen';
import DetailScreen from './src/screens/DetailScreen';
import ImageScreen from './src/screens/ImageScreen';
import SearchScreen from './src/screens/SearchScreen';
import Home from "./src/components/Home";
import LoginScreen from "./src/screens/LoginScreen";
import {TextComponent, YellowBox} from 'react-native';
import React from "react";
import {Text} from "react-native";
const navigator = createStackNavigator(
{
Login: {
screen: LoginScreen,
navigationOptions: {
header: null,
}
},
Search: {
screen: SearchScreen,
navigationOptions: ({navigation}) => ({
headerTitle: <Text style={{fontSize: 27, fontWeight: 'bold', color: '#ffdd59'}}>CARE MAP</Text>
})
},
Components: {
screen: ComponentsScreen,
navigationOptions: ({
headerTitle: <Text style={{fontSize: 27, fontWeight: 'bold', color: '#ffdd59'}}>CARE MAP</Text>
})
},
Image: {
screen: ImageScreen,
navigationOptions: ({
headerTitle: <Text style={{fontSize: 27, fontWeight: 'bold', color: '#ffdd59'}}>CARE MAP</Text>
})
},
Detail: {
screen: DetailScreen,
navigationOptions: ({
headerTitle: <Text style={{fontSize: 27, fontWeight: 'bold', color: '#ffdd59'}}>CARE MAP</Text>
})
}
}, {headerMode: 'screen'}
);
export default createAppContainer(navigator);