Skip to content

Commit 15cdd8d

Browse files
authored
Bump example to Expo 52 (#3317)
## Description This PR fixes some issues that occur when trying to use `RNGH` with `expo sdk 52`. This bump will help with testing the [new expo features](https://docs.expo.dev/guides/tree-shaking/#recursive-optimizations) and [new react native features](https://reactnative.dev/docs/react-native-devtools) which will be useful for optimising Gesture Handler. ## Test plan <!-- Describe how did you test this change here. -->
1 parent 5b535c9 commit 15cdd8d

6 files changed

+2327
-2814
lines changed

example/app.config.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export default ({ config }) => ({
55
version: '0.0.1',
66
orientation: 'portrait',
77
icon: './assets/icon.png',
8-
sdkVersion: '51.0.0',
98
splash: {
109
image: './assets/splash.png',
1110
resizeMode: 'cover',
@@ -44,16 +43,6 @@ export default ({ config }) => ({
4443
],
4544
},
4645
],
47-
[
48-
'expo-build-properties',
49-
{
50-
ios: {
51-
newArchEnabled: Boolean(Number(process.env.FABRIC_ENABLED)),
52-
},
53-
android: {
54-
newArchEnabled: Boolean(Number(process.env.FABRIC_ENABLED)),
55-
},
56-
},
57-
],
5846
],
47+
newArchEnabled: Boolean(Number(process.env.FABRIC_ENABLED)),
5948
});

example/package.json

+15-17
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,30 @@
1414
"postinstall": "patch-package && expo prebuild"
1515
},
1616
"dependencies": {
17-
"@expo/metro-config": "~0.18.11",
18-
"@expo/metro-runtime": "~3.2.3",
19-
"@react-native-async-storage/async-storage": "^1.23.1",
20-
"@react-native-community/slider": "^4.5.2",
17+
"@expo/metro-config": "~0.19.0",
18+
"@expo/metro-runtime": "~4.0.1",
19+
"@react-native-async-storage/async-storage": "1.23.1",
20+
"@react-native-community/slider": "4.5.5",
2121
"@react-native-community/viewpager": "^5.0.11",
22-
"@react-native-masked-view/masked-view": "0.3.1",
22+
"@react-native-masked-view/masked-view": "0.3.2",
2323
"@react-navigation/elements": "^1.3.7",
2424
"@react-navigation/native": "^6.1.17",
2525
"@react-navigation/stack": "^6.3.29",
2626
"@swmansion/icons": "^0.0.1",
27-
"expo": "~51.0.38",
28-
"expo-build-properties": "^0.12.5",
29-
"expo-camera": "~15.0.16",
30-
"expo-font": "~12.0.10",
27+
"expo": "^52.0.27",
28+
"expo-camera": "~16.0.14",
29+
"expo-font": "~13.0.3",
3130
"hoist-non-react-statics": "^3.3.2",
3231
"invariant": "^2.2.4",
3332
"patch-package": "^6.5.1",
3433
"postinstall-postinstall": "^2.1.0",
35-
"react": "18.2.0",
36-
"react-dom": "18.2.0",
37-
"react-native": "0.75.4",
34+
"react": "18.3.1",
35+
"react-dom": "18.3.1",
36+
"react-native": "0.76.6",
3837
"react-native-gesture-handler": "link:..",
39-
"react-native-reanimated": "3.15.5",
40-
"react-native-safe-area-context": "4.10.5",
41-
"react-native-screens": "3.35.0",
38+
"react-native-reanimated": "~3.16.1",
39+
"react-native-safe-area-context": "4.12.0",
40+
"react-native-screens": "~4.4.0",
4241
"react-native-svg": "15.8.0",
4342
"react-native-web": "~0.19.10"
4443
},
@@ -49,8 +48,7 @@
4948
"@tsconfig/react-native": "^3.0.5",
5049
"@types/jest": "^29.5.12",
5150
"@types/metro-config": "^0.76.3",
52-
"@types/react": "~18.2.79",
53-
"@types/react-native": "^0.73.0",
51+
"@types/react": "~18.3.12",
5452
"@types/react-test-renderer": "^18.3.0",
5553
"@typescript-eslint/parser": "^7.8.0",
5654
"babel-jest": "^29.7.0",

example/patches/expo-modules-autolinking+1.11.1.patch

-26
This file was deleted.

0 commit comments

Comments
 (0)