Skip to content

Commit 8149caf

Browse files
committed
fix: rename tabBarRole to role
1 parent 3f22514 commit 8149caf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-navigation/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export type NativeBottomTabNavigationOptions = {
9595
/**
9696
* Role for the tab. (iOS only)
9797
*/
98-
tabBarRole?: TabRole;
98+
role?: TabRole;
9999

100100
/**
101101
* Whether inactive screens should be suspended from re-rendering. Defaults to `false`.

packages/react-navigation/src/views/NativeBottomTabView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function NativeBottomTabView({
4949
getTestID={({ route }) =>
5050
descriptors[route.key]?.options.tabBarButtonTestID
5151
}
52-
getRole={({ route }) => descriptors[route.key]?.options.tabBarRole}
52+
getRole={({ route }) => descriptors[route.key]?.options.role}
5353
tabBar={
5454
tabBar ? () => tabBar({ state, descriptors, navigation }) : undefined
5555
}

0 commit comments

Comments
 (0)