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
@@ -321,6 +322,17 @@ Boolean indicating whether to prevent inactive screens from re-rendering. Defaul
321
322
322
323
It's working separately from `enableFreeze()` in `react-native-screens`. So settings won't be shared between them.
323
324
325
+
#### `preventsDefault`
326
+
327
+
Whether to prevent default tab switching behavior when this tab is pressed. This is useful when you want to handle tab press events manually without switching tabs.
328
+
329
+
- Type: `boolean`
330
+
- Default: `false`
331
+
332
+
:::note
333
+
Due to iOS 26's new tab switching animations, controlling tab switching from JavaScript can cause significant delays. The `preventsDefault` option allows you to define this behavior statically to avoid animation delays.
334
+
:::
335
+
324
336
325
337
#### `tabBarButtonTestID`
326
338
@@ -361,9 +373,9 @@ To prevent the default behavior, you can call `event.preventDefault`:
0 commit comments