@@ -28,23 +28,25 @@ export default class NavigationBar extends Component{
2828 render ( ) {
2929 const { title, leftBtnIcon, leftBtnPress, rightBtnIcon, rightBtnPress, isBackBtnOnLeft} = this . props ;
3030 return (
31- < View style = { styles . toolbar } >
32- < View style = { styles . fixedCell } >
33- { leftBtnIcon ?
34- < IconButton icon = { leftBtnIcon } onPress = { leftBtnPress } isBackBtnOnLeft = { isBackBtnOnLeft } />
35- :
36- null
37- }
38- </ View >
39- < View style = { styles . centerCell } >
40- < Text style = { styles . title } > { title } </ Text >
41- </ View >
42- < View style = { styles . fixedCell } >
43- { rightBtnIcon ?
44- < IconButton icon = { rightBtnIcon } onPress = { rightBtnPress } />
45- :
46- null
47- }
31+ < View style = { styles . container } >
32+ < View style = { styles . toolbar } >
33+ < View style = { styles . fixedCell } >
34+ { leftBtnIcon ?
35+ < IconButton icon = { leftBtnIcon } onPress = { leftBtnPress } isBackBtnOnLeft = { isBackBtnOnLeft } />
36+ :
37+ null
38+ }
39+ </ View >
40+ < View style = { styles . centerCell } >
41+ < Text style = { styles . title } > { title } </ Text >
42+ </ View >
43+ < View style = { styles . fixedCell } >
44+ { rightBtnIcon ?
45+ < IconButton icon = { rightBtnIcon } onPress = { rightBtnPress } />
46+ :
47+ null
48+ }
49+ </ View >
4850 </ View >
4951 </ View >
5052 ) ;
@@ -91,14 +93,18 @@ class IconButton extends Component{
9193}
9294
9395const styles = StyleSheet . create ( {
96+ container : { //in order to display the shadow on home tab
97+ height : theme . toolbar . height + px2dp ( 4 ) ,
98+ width : theme . screenWidth
99+ } ,
94100 toolbar : {
95101 height : theme . toolbar . height ,
96102 backgroundColor : theme . toolbar . barColor ,
97103 flexDirection : 'row' ,
98104 paddingTop : Platform . OS === 'android' ? 0 : px2dp ( 6 ) ,
99- elevation : 8 ,
105+ elevation : 3 ,
100106 shadowColor : 'rgb(0,0,0)' ,
101- shadowOffset : { height : 5 , width : 1 } ,
107+ shadowOffset : { height : 3 , width : 1 } ,
102108 shadowOpacity : 0.25 ,
103109 shadowRadius : 3
104110 } ,
0 commit comments