File tree Expand file tree Collapse file tree 6 files changed +16
-11
lines changed
packages/react-native-bottom-tabs/src Expand file tree Collapse file tree 6 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ const FourTabsOpaqueScrollEdgeAppearance = () => {
5252 return < FourTabs scrollEdgeAppearance = "opaque" /> ;
5353} ;
5454
55- const FourTabsWithBarTintColor = ( ) => {
56- return < FourTabs barTintColor = { '#87CEEB' } /> ;
55+ const FourTabsWithBackgroundColor = ( ) => {
56+ return < FourTabs backgroundColor = { '#87CEEB' } /> ;
5757} ;
5858
5959const FourTabsTranslucent = ( ) => {
@@ -108,7 +108,7 @@ const examples = [
108108 platform : 'ios' ,
109109 } ,
110110 {
111- component : FourTabsWithBarTintColor ,
111+ component : FourTabsWithBackgroundColor ,
112112 name : 'Four Tabs - Custom Background Color of Tabs' ,
113113 } ,
114114 {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ interface Props {
1010 ignoresTopSafeArea ?: boolean ;
1111 disablePageAnimations ?: boolean ;
1212 scrollEdgeAppearance ?: 'default' | 'opaque' | 'transparent' ;
13- barTintColor ?: ColorValue ;
13+ backgroundColor ?: ColorValue ;
1414 translucent ?: boolean ;
1515 hideOneTab ?: boolean ;
1616 rippleColor ?: ColorValue ;
@@ -21,7 +21,7 @@ export default function FourTabs({
2121 ignoresTopSafeArea = false ,
2222 disablePageAnimations = false ,
2323 scrollEdgeAppearance = 'default' ,
24- barTintColor ,
24+ backgroundColor ,
2525 translucent = true ,
2626 hideOneTab = false ,
2727 rippleColor,
@@ -71,7 +71,7 @@ export default function FourTabs({
7171 navigationState = { { index, routes } }
7272 onIndexChange = { setIndex }
7373 renderScene = { renderScene }
74- tabBarStyle = { { barTintColor : barTintColor } }
74+ tabBarStyle = { { backgroundColor } }
7575 translucent = { translucent }
7676 rippleColor = { rippleColor }
7777 activeIndicatorColor = { activeIndicatorColor }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function NativeBottomTabs() {
1616 tabBarInactiveTintColor = "#C57B57"
1717 tabBarActiveTintColor = "#F7DBA7"
1818 tabBarStyle = { {
19- barTintColor : '#1E2D2F' ,
19+ backgroundColor : '#1E2D2F' ,
2020 } }
2121 rippleColor = "#F7DBA7"
2222 tabLabelStyle = { {
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ Object containing styles for the tab bar.
165165
166166Supported properties:
167167
168- - ` barTintColor ` : Background color of the tab bar.
168+ - ` backgroundColor ` : Background color of the tab bar.
169169
170170#### ` translucent ` <Badge text =" iOS " type =" info " />
171171
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ It supports the following values:
9696#### ` labeled `
9797
9898Whether to show labels in tabs.
99+
99100- Type: ` boolean `
100101- Default <Badge text = " iOS" type = " info" />: ` true `
101102- Default <Badge text = " Android" type = " info" />: ` false `
@@ -130,9 +131,13 @@ Color for the active tab.
130131
131132Color for the inactive tabs.
132133
133- #### ` barTintColor `
134+ #### ` tabBarStyle `
135+
136+ Object containing styles for the tab bar.
137+
138+ Supported properties:
134139
135- Background color of the tab bar.
140+ - ` backgroundColor ` : Background color of the tab bar.
136141
137142#### ` activeIndicatorColor ` <Badge text = " android" type = " info" />
138143
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ interface Props<Route extends BaseRoute> {
120120 /**
121121 * Background color of the tab bar.
122122 */
123- barTintColor ?: ColorValue ;
123+ backgroundColor ?: ColorValue ;
124124 } ;
125125
126126 /**
You can’t perform that action at this time.
0 commit comments