File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed
packages/react-navigation/src Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @bottom-tabs/react-navigation " : patch
3
+ ---
4
+
5
+ fix: remove ` tabBarIcon ` from experimental API
Original file line number Diff line number Diff line change @@ -67,12 +67,6 @@ export type NativeBottomTabNavigationOptions = {
67
67
*/
68
68
tabBarIcon ?: ( props : { focused : boolean } ) => ImageSourcePropType | AppleIcon ;
69
69
70
- /**
71
- * Whether the tab bar item is visible when this screen is active.
72
- * Used for compatibility with JS Tabs. Prefer using `tabBarItemHidden` as this API may be removed in the future.
73
- */
74
- tabBarButton ?: ( ) => null ;
75
-
76
70
/**
77
71
* Whether the tab bar item is visible. Defaults to true.
78
72
*/
Original file line number Diff line number Diff line change @@ -42,11 +42,7 @@ export default function NativeBottomTabView({
42
42
getBadge = { ( { route } ) => descriptors [ route . key ] ?. options . tabBarBadge }
43
43
getHidden = { ( { route } ) => {
44
44
const options = descriptors [ route . key ] ?. options ;
45
-
46
- return (
47
- options ?. tabBarItemHidden === true ||
48
- options ?. tabBarButton ?.( ) === null
49
- ) ;
45
+ return options ?. tabBarItemHidden === true ;
50
46
} }
51
47
getIcon = { ( { route, focused } ) => {
52
48
const options = descriptors [ route . key ] ?. options ;
You can’t perform that action at this time.
0 commit comments