Skip to content

Commit 81c5a92

Browse files
committed
Add colored icon to BottomTabs screen
1 parent 545e5fe commit 81c5a92

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

playground/src/app.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ function start() {
3232
orientation: ['portrait']
3333
},
3434
bottomTab: {
35-
iconColor: '#1B4C77',
36-
selectedIconColor: '#0f0',
3735
textColor: '#1B4C77',
3836
selectedTextColor: '#0f0',
3937
fontFamily: 'HelveticaNeue-Italic',
1.77 KB
Loading

playground/src/screens/WelcomeScreen.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ class WelcomeScreen extends Component {
8787
},
8888
bottomTab: {
8989
text: 'Tab 1',
90-
icon: require('../images/one.png'),
91-
selectedIcon: require('../images/one.png'),
90+
icon: require('../images/colored_tab_icon.png'),
9291
testID: testIDs.FIRST_TAB_BAR_BUTTON
9392
}
9493
}
@@ -118,6 +117,8 @@ class WelcomeScreen extends Component {
118117
bottomTab: {
119118
text: 'Tab 2',
120119
icon: require('../images/two.png'),
120+
iconColor: '#1B4C77',
121+
selectedIconColor: '#0f0',
121122
testID: testIDs.SECOND_TAB_BAR_BUTTON
122123
}
123124
}
@@ -138,6 +139,8 @@ class WelcomeScreen extends Component {
138139
bottomTab: {
139140
text: 'Tab 3',
140141
icon: require('../images/one.png'),
142+
iconColor: '#1B4C77',
143+
selectedIconColor: '#0f0',
141144
selectedIcon: require('../images/one.png')
142145
}
143146
}

0 commit comments

Comments
 (0)