You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When `false`, tapping on the tab in tab bar won't select the tab. Custom behavior can be implemented by listening to [`tabPress`](#tabpress) event.
503
+
504
+
Defaults to `true`.
505
+
498
506
#### `bottomAccessory`
499
507
500
508
Function that returns a React element to display as an accessory view. The function receives an options object with a `placement` parameter that can be one of the following values:
@@ -556,8 +564,6 @@ This event is fired when the user presses the tab button for the current screen
556
564
- If the screen for the tab renders a scroll view, you can use [`useScrollToTop`](use-scroll-to-top.md) to scroll it to top
557
565
- If the screen for the tab renders a stack navigator, a `popToTop` action is performed on the stack
558
566
559
-
The default behavior of the tab press is controlled natively and cannot be prevented.
The default behavior of the tab press is controlled natively and cannot be prevented. Use the [`tabBarSelectionEnabled`](#tabbarselectionenabled) option to prevent the tab from being selected when pressed if you want to implement custom behavior.
579
+
572
580
#### `transitionStart`
573
581
574
582
This event is fired when the transition animation starts for the current screen.
When `false`, tapping on the tab in tab bar won't select the tab. Custom behavior can be implemented by listening to [`tabPress`](#tabpress) event.
1043
+
1044
+
Defaults to `true`.
1045
+
1038
1046
#### `bottomAccessory`
1039
1047
1040
1048
Function that returns a React element to display as an accessory view. The function receives an options object with a `placement` parameter that can be one of the following values:
@@ -1161,73 +1169,18 @@ This event is fired when the user presses the tab button for the current screen
1161
1169
- If the screen for the tab renders a scroll view, you can use [`useScrollToTop`](use-scroll-to-top.md) to scroll it to top
1162
1170
- If the screen for the tab renders a stack navigator, a `popToTop` action is performed on the stack
1163
1171
1164
-
To prevent the default behavior, you can call `event.preventDefault`.
1165
-
1166
-
:::note
1167
-
1168
-
Calling `event.preventDefault` is only supported with the `custom` implementation. The default behavior cannot be prevented with the `native` implementation.
If you have a custom tab bar, make sure to emit this event.
1183
+
The default behavior of the tab press is controlled natively and cannot be prevented. Use the [`tabBarSelectionEnabled`](#tabbarselectionenabled) option to prevent the tab from being selected when pressed if you want to implement custom behavior.
0 commit comments