-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocalHome.js
More file actions
40 lines (36 loc) · 1.04 KB
/
localHome.js
File metadata and controls
40 lines (36 loc) · 1.04 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
import React from 'react';
import { createAppContainer, withNavigationFocus } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import {styles, color, itemFontSize ,my_i18n} from './styleConst'
import {LocalList} from './localList'
import {LocalView} from './localView'
function getTitle({navigation}){
let plst = navigation.getParam('plst_name', my_i18n.t('localView_at'));
return {
title: plst,
};
}
LocalView.navigationOptions = {headerShown: false}
LocalList.navigationOptions = getTitle
export const LocalHome = createStackNavigator(
{
LocalView: withNavigationFocus(LocalView),
LocalList: LocalList,
},
{
defaultNavigationOptions: ({navigation}) => ({
headerStyle: {
height: 35,
backgroundColor: color.light_pup_header,
},
headerLeftContainerStyle:{
justifyContent: 'flex-end',
},
headerTitleStyle: {
fontWeight: "bold",
fontSize: itemFontSize+2,
},
headerBackTitle: my_i18n.t('header_back')
})
}
);