Unable to set active icon and label style in BottomNavigation.Action
See original GitHub issueWhen using <BottomNavigation.Action />
, the only style property working is container. How do I set the style properties of active and disabled?
<BottomNavigation.Action
key="today"
icon={<FontAwesome name='bell' size={25} />}
label="Alerts"
onPress={() => this.setState({ active: 'alert' })}
style={{
container:{
backgroundColor: 'red'
},
active:{
color: '#AC8E49',
}
}}
/>
The component rendered has a red background but the icon style is not colored.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
flutter - BottomNavigationBar // Cannot control item label color
This will change the color of label and icon both for unselected items. Example: Image. Unfortunately, unselectedLabelStyle property works for ...
Read more >Bottom Navigation Title To Label - Flutter documentation
The BottomNavigationBarItem class has a title parameter, which is a Widget . This made it impossible for the BottomNavigationBar to show Tooltip widgets,...
Read more >BottomNavigation · React Native Paper
Whether the shifting style is used, the active tab icon shifts up to show the label and the inactive tabs won't have a...
Read more >Flutter - Custom Bottom Navigation Bar - GeeksforGeeks
You can name the variable as you wish. The pageIndex is to hold the index of your current page. Now define a final...
Read more >BottomNavigationView - Android Developers
Each menu item title, icon and enabled state will be used for displaying bottom navigation bar items. Menu items can also be used...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have some problem.
Code :-
Result :-
This works,