When I want to change the color of the bottomTab items, I call mergeOptions to change it accordingly. This works perfectly on iOS, but this feature doesn't seem to be implemented. (as BottomTabsController.java mergeOptions doesn't call tabPresenter.mergeOptions(options);)
Navigation.setRoot({
root: {
bottomTabs: {
id: 'root',
children: [
{
stack: {
id: `tab-1`,
children: [
{
component: {
name: '1',
},
},
],
options: {
bottomTab: {
iconColor: '#FFF',
textColor: '#FFF',
},
bottomTabs: {
animate: true,
},
},
},
},
],
},
},
});
// some time later
Navigation.mergeOptions('root', {
bottomTab: {
iconColor: '#000',
textColor: '#000',
},
bottomTabs: {
animate: true,
},
});
Navigation.mergeOptions(`tab-1`, {
bottomTab: {
iconColor: '#000',
textColor: '#000',
},
bottomTabs: {
animate: true,
},
});
3.0.0-alpha.80.60.4Awesome, thanks for looking into this! @guyca
Most helpful comment
Awesome, thanks for looking into this! @guyca