Skip to content

Commit b7c8854

Browse files
feat: Support Expo 52 and React Native 0.76 (#5594)
## Problem solved Fixes CNCT-2510 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating dependencies and improving compatibility with `Expo 52` and `React Native 0.76`, including adjustments to package versions and installation commands. ### Detailed summary - Added support for `Expo 52` and `React Native 0.76`. - Updated `expo-web-browser` version to `14.0.1`. - Modified `expo-application` version to allow `5 || 6`. - Updated installation commands from `npx expo:run` to `npx expo run`. - Added `react-native-passkey` dependency. - Adjusted peer dependencies in `package.json` files. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent c3d7b66 commit b7c8854

File tree

6 files changed

+52
-42
lines changed

6 files changed

+52
-42
lines changed

.changeset/red-baboons-share.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@thirdweb-dev/react-native-adapter": patch
3+
"thirdweb": patch
4+
---
5+
6+
Support for Expo 52 and React Native 0.76

apps/portal/src/app/react-native/v5/getting-started/page.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ npx expo install thirdweb @thirdweb-dev/react-native-adapter
3636
Since react native requires installing native dependencies directly, you also have to install these required peer dependencies:
3737

3838
```shell
39-
npx expo install react-native-get-random-values @react-native-community/netinfo expo-application @react-native-async-storage/async-storage expo-web-browser expo-linking react-native-aes-gcm-crypto react-native-quick-crypto amazon-cognito-identity-js @coinbase/wallet-mobile-sdk react-native-mmkv react-native-svg
39+
npx expo install react-native-get-random-values @react-native-community/netinfo expo-application @react-native-async-storage/async-storage expo-web-browser expo-linking react-native-aes-gcm-crypto react-native-quick-crypto amazon-cognito-identity-js @coinbase/wallet-mobile-sdk react-native-mmkv react-native-svg @walletconnect/react-native-compat react-native-passkey
4040
```
4141

4242
Here's an explanation of each peer dependency and why its needed:
@@ -168,13 +168,13 @@ npx expo prebuild
168168
Run the development build on ios:
169169

170170
```shell
171-
npx expo:run ios
171+
npx expo run:ios
172172
```
173173

174174
Run the development build on android:
175175

176176
```shell
177-
npx expo:run android
177+
npx expo run:android
178178
```
179179

180180
</Step>

apps/portal/src/app/react-native/v5/troubleshooting/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ npx expo prebuild
1313
You can then run the development build using the following command:
1414

1515
```shell
16-
npx expo:run ios
16+
npx expo run:ios
1717
```
1818

1919
```shell
20-
npx expo:run android
20+
npx expo run:android
2121
```
2222

2323
## OpenSSL iOS build error

packages/react-native-adapter/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"@aws-sdk/client-kms": "3.699.0",
3232
"@aws-sdk/client-lambda": "3.699.0",
3333
"@aws-sdk/credential-providers": "3.699.0",
34-
"@mobile-wallet-protocol/client": "0.1.2",
35-
"@walletconnect/react-native-compat": "2.17.2"
34+
"@mobile-wallet-protocol/client": "0.1.2"
3635
},
3736
"devDependencies": {
3837
"rimraf": "6.0.1"
@@ -41,9 +40,10 @@
4140
"@coinbase/wallet-mobile-sdk": "^1",
4241
"@react-native-async-storage/async-storage": "^1 || ^2",
4342
"@react-native-community/netinfo": "^11",
44-
"expo-application": "^5",
43+
"@walletconnect/react-native-compat": "^2",
44+
"expo-application": "^5 || ^6",
4545
"expo-linking": "^6",
46-
"expo-web-browser": "^13",
46+
"expo-web-browser": "^13 || ^14",
4747
"react-native": ">=0.70",
4848
"react-native-aes-gcm-crypto": "^0.2",
4949
"react-native-get-random-values": "^1",

packages/thirdweb/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,11 @@
193193
"@react-native-async-storage/async-storage": "^1 || ^2",
194194
"ethers": "^5 || ^6",
195195
"expo-linking": "^6",
196-
"expo-web-browser": "^13",
196+
"expo-web-browser": "^13 || ^14",
197197
"react": ">=18",
198198
"react-native": "*",
199199
"react-native-aes-gcm-crypto": "^0.2",
200+
"react-native-passkey": "^3",
200201
"react-native-quick-crypto": ">=0.7.0-rc.6 || >=0.7",
201202
"react-native-svg": "^15",
202203
"typescript": ">=5.0.4"
@@ -314,7 +315,7 @@
314315
"ethers5": "npm:ethers@5",
315316
"ethers6": "npm:ethers@6",
316317
"expo-linking": "7.0.3",
317-
"expo-web-browser": "13.0.3",
318+
"expo-web-browser": "14.0.1",
318319
"happy-dom": "15.11.7",
319320
"knip": "5.39.0",
320321
"msw": "2.6.6",

0 commit comments

Comments
 (0)