@@ -11,8 +11,8 @@ import PropTypes from 'prop-types';
1111
1212const HEIGHT = 23 ;
1313const COLOR = '#e52b50' ;
14- const TEXT_COLOR = '#fff ' ;
15- const DISABLE_TEXT_COLOR = '#f4f4f4 '
14+ const TEXT_COLOR = 'black ' ;
15+ const DISABLE_TEXT_COLOR = 'grey '
1616
1717const Crumb = ( { isCrumbActive, index, text, firstCrumbStyle, lastCrumbStyle, crumbStyle, activeTabStyle, crumbTextStyle, activeCrumbTextStyle,
1818 onCrumbPress, height, triangleHeadStyle, triangleTailStyle } ) => {
@@ -39,7 +39,7 @@ const Crumb = ({ isCrumbActive, index, text, firstCrumbStyle, lastCrumbStyle, cr
3939 numberOfLines = { 1 }
4040 ellipsizeMode = "tail"
4141 >
42- { text }
42+ { ' ' + text + ' ' }
4343 </ Text >
4444 { isCrumbActive && ! lastCrumbStyle ? < View style = { [ styles . rightTriangleContainer , styles . triangleHead , triangleHeadStyle , { right : - height / 2 } , Platform . OS === 'android' ? { top : - 2 } : { } ] } /> : null }
4545 </ View >
@@ -118,7 +118,7 @@ const styles = StyleSheet.create({
118118 crumbStyle : {
119119 flexDirection : 'row' ,
120120 justifyContent : 'center' ,
121- backgroundColor : 'white ' ,
121+ backgroundColor : 'transparent ' ,
122122 height : HEIGHT
123123 } ,
124124 activeCrumbStyle : {
@@ -130,7 +130,8 @@ const styles = StyleSheet.create({
130130 fontSize : 12
131131 } ,
132132 activeCrumbTextStyle : {
133- color : 'white'
133+ color : 'white' ,
134+ fontWeight : '600'
134135 } ,
135136 crumbContainer : {
136137 flexDirection : 'row' ,
@@ -154,15 +155,15 @@ const styles = StyleSheet.create({
154155 borderBottomWidth : HEIGHT / 2.0 ,
155156 borderLeftWidth : HEIGHT / 2.0 ,
156157 borderColor : COLOR ,
157- borderTopColor : 'white ' ,
158- borderBottomColor : 'white ' ,
158+ borderTopColor : 'transparent ' ,
159+ borderBottomColor : 'transparent ' ,
159160 } ,
160161 triangleTail : {
161162 borderTopWidth : HEIGHT / 2.0 ,
162163 borderRightWidth : 0 ,
163164 borderBottomWidth : HEIGHT / 2.0 ,
164165 borderLeftWidth : HEIGHT / 2.0 ,
165- borderColor : 'white ' ,
166+ borderColor : 'transparent ' ,
166167 borderTopColor : COLOR ,
167168 borderBottomColor : COLOR ,
168169 }
0 commit comments