Skip to content

Commit 6062699

Browse files
authored
fix: bottom navigation navigation state type correction (#4223)
1 parent ac3820a commit 6062699

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

docs/src/css/custom.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ a .badge .badge-text {
222222
border-color: rgba(98, 0, 238, 1);
223223
}
224224

225+
.badge-deprecatedProperty,
225226
.badge-deprecated {
226227
color: rgba(176, 0, 32, 1);
227228
background-color: rgba(176, 0, 32, 0.2);

src/components/BottomNavigation/BottomNavigation.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ export type BaseRoute = {
2626
focusedIcon?: IconSource;
2727
unfocusedIcon?: IconSource;
2828
badge?: string | number | boolean;
29+
/**
30+
* @deprecated In v5.x works only with theme version 2.
31+
*/
2932
color?: string;
3033
accessibilityLabel?: string;
3134
testID?: string;

src/components/BottomNavigation/BottomNavigationBar.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ type BaseRoute = {
4040
focusedIcon?: IconSource;
4141
unfocusedIcon?: IconSource;
4242
badge?: string | number | boolean;
43+
/**
44+
* @deprecated In v5.x works only with theme version 2.
45+
*/
4346
color?: string;
4447
accessibilityLabel?: string;
4548
testID?: string;
@@ -94,7 +97,7 @@ export type Props<Route extends BaseRoute> = {
9497
* - `title`: title of the route to use as the tab label
9598
* - `focusedIcon`: icon to use as the focused tab icon, can be a string, an image source or a react component @renamed Renamed from 'icon' to 'focusedIcon' in v5.x
9699
* - `unfocusedIcon`: icon to use as the unfocused tab icon, can be a string, an image source or a react component @supported Available in v5.x with theme version 3
97-
* - `color`: color to use as background color for shifting bottom navigation @deprecated Deprecated in v5.x
100+
* - `color`: color to use as background color for shifting bottom navigation @deprecatedProperty In v5.x works only with theme version 2.
98101
* - `badge`: badge to show on the tab icon, can be `true` to show a dot, `string` or `number` to show text.
99102
* - `accessibilityLabel`: accessibility label for the tab button
100103
* - `testID`: test id for the tab button

src/components/FAB/FAB.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export type Props = $Omit<$RemoveChildren<typeof Surface>, 'mode'> & {
6464
*/
6565
animated?: boolean;
6666
/**
67-
* @deprecated Deprecated in v.3x - use prop size="small".
67+
* @deprecated Deprecated in v.5x - use prop size="small".
6868
*
6969
* Whether FAB is mini-sized, used to create visual continuity with other elements. This has no effect if `label` is specified.
7070
*/

0 commit comments

Comments
 (0)