Skip to content

Commit 1b022b4

Browse files
committed
changed selected textx color
1 parent 7ec5436 commit 1b022b4

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/breadcrumb.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import PropTypes from 'prop-types';
1111

1212
const HEIGHT = 23;
1313
const 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

1717
const 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

Comments
 (0)