Skip to content

Commit b836722

Browse files
authored
Merge pull request #2 from blankse/patch-1
Fix: Couldn't set activeCrumbStyle via props
2 parents 4d72256 + e4555b7 commit b836722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/breadcrumb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ const COLOR = '#e52b50';
1414
const TEXT_COLOR = 'black';
1515
const DISABLE_TEXT_COLOR = 'grey'
1616

17-
const Crumb = ({ isCrumbActive, index, text, firstCrumbStyle, lastCrumbStyle, crumbStyle, activeTabStyle, crumbTextStyle, activeCrumbTextStyle,
17+
const Crumb = ({ isCrumbActive, index, text, firstCrumbStyle, lastCrumbStyle, crumbStyle, activeCrumbStyle, crumbTextStyle, activeCrumbTextStyle,
1818
onCrumbPress, height, triangleHeadStyle, triangleTailStyle }) => {
1919
return (
2020
<TouchableOpacity
2121
style={[
2222
styles.crumbStyle,
2323
crumbStyle,
24-
isCrumbActive ? [styles.activeCrumbStyle, activeTabStyle] : {},
24+
isCrumbActive ? [styles.activeCrumbStyle, activeCrumbStyle] : {},
2525
firstCrumbStyle,
2626
lastCrumbStyle,
2727
{ height }]}

0 commit comments

Comments
 (0)