Skip to content

Commit a65309c

Browse files
fix(react-navigation): restore the >=7 peer on @react-navigation/native
1 parent 2cc28f1 commit a65309c

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

.changeset/standard-navigation-shared-adapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
'@bottom-tabs/react-navigation': minor
44
---
55

6-
Move the native tabs implementation into a new framework-agnostic `@bottom-tabs/standard-navigation` package built on the `standard-navigation` contract, so Expo Router SDK 56+ apps can drive the same navigator through `unstable_createStandardRouterNavigator` without loading a second copy of React Navigation. `@bottom-tabs/react-navigation` now requires `@react-navigation/native` 7.3.0 or newer.
6+
Move the native tabs implementation into a new framework-agnostic `@bottom-tabs/standard-navigation` package built on the `standard-navigation` contract, so Expo Router SDK 56+ apps can drive the same navigator through `unstable_createStandardRouterNavigator` without loading a second copy of React Navigation.

docs/docs/docs/getting-started/quick-start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ npx create-expo-app@latest NativeTabs --template @bottom-tabs/expo-template
1414

1515
<PackageManagerTabs command="install react-native-bottom-tabs" />
1616

17-
If you are going to use the [React Navigation integration](/docs/guides/usage-with-react-navigation), or [Expo Router](/docs/guides/usage-with-expo-router) on SDK 55 or older, also install `@bottom-tabs/react-navigation`.
17+
If you are going to use the [React Navigation integration](/docs/guides/usage-with-react-navigation), or [Expo Router](/docs/guides/usage-with-expo-router) on SDK 52 to 55, also install `@bottom-tabs/react-navigation`.
1818

1919
<PackageManagerTabs command="install @bottom-tabs/react-navigation" />
2020

docs/docs/docs/guides/usage-with-expo-router.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ Which package you need depends on your Expo SDK version, because Expo Router sto
77
| Expo SDK | Package | Integration |
88
| ------------ | ---------------------------------- | ---------------------------------------- |
99
| 56 and newer | `@bottom-tabs/standard-navigation` | `unstable_createStandardRouterNavigator` |
10-
| 55 and older | `@bottom-tabs/react-navigation` | `withLayoutContext` |
10+
| 52 to 55 | `@bottom-tabs/react-navigation` | `withLayoutContext` |
11+
12+
Expo SDK 51 and older is not supported. Those versions ship React Navigation 6, and `@bottom-tabs/react-navigation` requires React Navigation 7.
1113

1214
## Expo SDK 56 and newer
1315

@@ -80,7 +82,7 @@ The `tabBar` function receives `state`, `descriptors`, `actions` and `emitter` -
8082

8183
`BottomTabBar` from `@react-navigation/bottom-tabs` cannot be used here, since it expects a React Navigation `navigation` object.
8284

83-
## Expo SDK 55 and older
85+
## Expo SDK 52 to 55
8486

8587
Install `@bottom-tabs/react-navigation`, which provides a native bottom tab navigator for React Navigation.
8688

packages/react-navigation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"@bottom-tabs/standard-navigation": "1.4.0"
7272
},
7373
"peerDependencies": {
74-
"@react-navigation/native": ">=7.3.0",
74+
"@react-navigation/native": ">=7",
7575
"react": "*",
7676
"react-native": "*",
7777
"react-native-bottom-tabs": "*"

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3986,7 +3986,7 @@ __metadata:
39863986
test-renderer: "npm:^1.2.0"
39873987
typescript: "npm:^5.9.2"
39883988
peerDependencies:
3989-
"@react-navigation/native": ">=7.3.0"
3989+
"@react-navigation/native": ">=7"
39903990
react: "*"
39913991
react-native: "*"
39923992
react-native-bottom-tabs: "*"

0 commit comments

Comments
 (0)