Commit 942e6ce
authored
chore: change default bottom tabs implementation to managed (#3408)
## Description
Changes default bottom tabs implementation to managed.
Bottom tabs offer 2 ways of controlling the container:
- managed/natively-driven,
- controlled/programmatically-driven.
Most of the libraries consuming `react-native-screens` use managed tabs:
[expo-router](https://github.com/expo/expo/blob/a5b3082932187d54ef3311dee21462dc07d86402/apps/expo-go/src/navigation/NativeBottomTabsNavigator.tsx#L41)
and
[react-navigation](https://github.com/react-navigation/react-navigation/blob/4568ec61decebf42f63e3d3b710d21b33d698846/packages/bottom-tabs/src/unstable/NativeBottomTabView.native.tsx#L150).
## Changes
- change `RNS_CONTROLLED_BOTTOM_TABS_DEFAULT` to `false`
## Test code and steps to reproduce
Run `TestBottomTabs`. Verify that managed implementation is used (use
heavy render and switch between Tab1 and Tab2, selected tab should
change immediately).
## Checklist
- [x] Included code example that can be used to test this change
- [x] Ensured that CI passes1 parent 623d565 commit 942e6ce
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments