Skip to content

Commit 415e49d

Browse files
Change default tab bar button from "Pressable" to "PlatformPressable" (#1446)
Change default tab bar button from "Pressable" to "PlatformPressable" - Fix inconsistent documentation between text and TypeScript definitions - TypeScript correctly specifies PlatformPressable as default - Aligns documentation with actual implementation - Prevents confusion for developers using custom tabBarButton Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com>
1 parent b8b02ed commit 415e49d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

versioned_docs/version-7.x/bottom-tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Accessibility label for the tab button. This is read by the screen reader when t
340340

341341
#### `tabBarButton`
342342

343-
Function which returns a React element to render as the tab bar button. It wraps the icon and label. Renders `Pressable` by default.
343+
Function which returns a React element to render as the tab bar button. It wraps the icon and label. Renders [`PlatformPressable`](elements.md#platformpressable) by default.
344344

345345
You can specify a custom implementation here:
346346

versioned_docs/version-8.x/bottom-tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ Only supported with `custom` implementation.
678678

679679
#### `tabBarButton`
680680

681-
Function which returns a React element to render as the tab bar button. It wraps the icon and label. Renders `Pressable` by default.
681+
Function which returns a React element to render as the tab bar button. It wraps the icon and label. Renders [`PlatformPressable`](elements.md#platformpressable) by default.
682682

683683
Only supported with `custom` implementation.
684684

0 commit comments

Comments
 (0)