Skip to content

Commit 47af552

Browse files
authored
feat(example): update with-react-native-web, Expo SDK 52 (#10466)
Updated sdk and installed compatible packages ### Description Updated expo to SDK 52 and corresponding native dependencies to compatible versions. Following tests are done thoroughly: - [x] expo development build - [x] expo go - [x] next dev - [x] next build Signed-off-by: shinjith-dev <[email protected]>
1 parent 91a2ee6 commit 47af552

File tree

4 files changed

+2389
-2964
lines changed

4 files changed

+2389
-2964
lines changed

examples/with-react-native-web/apps/native/app.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"orientation": "portrait",
88
"icon": "./assets/icon.png",
99
"userInterfaceStyle": "light",
10+
"newArchEnabled": true,
1011
"splash": {
1112
"image": "./assets/splash.png",
1213
"resizeMode": "contain",
@@ -15,9 +16,7 @@
1516
"updates": {
1617
"fallbackToCacheTimeout": 0
1718
},
18-
"assetBundlePatterns": [
19-
"**/*"
20-
],
19+
"assetBundlePatterns": ["**/*"],
2120
"ios": {
2221
"supportsTablet": true
2322
},
@@ -32,8 +31,6 @@
3231
"favicon": "./assets/favicon.png",
3332
"bundler": "metro"
3433
},
35-
"plugins": [
36-
"expo-router"
37-
]
34+
"plugins": ["expo-router"]
3835
}
3936
}

examples/with-react-native-web/apps/native/package.json

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,37 @@
55
"main": "index.js",
66
"scripts": {
77
"dev": "expo start --web",
8-
"android": "expo start --android",
9-
"ios": "expo start --ios",
8+
"android": "expo run:android",
9+
"ios": "expo run:ios",
1010
"web": "expo start --web",
1111
"eject": "expo eject"
1212
},
1313
"dependencies": {
1414
"@repo/ui": "*",
15-
"expo": "~51.0.39",
16-
"expo-constants": "~16.0.2",
17-
"expo-linking": "~6.3.1",
18-
"expo-router": "~3.5.24",
19-
"expo-status-bar": "~1.12.1",
20-
"expo-system-ui": "~3.0.7",
21-
"react": "18.2.0",
22-
"react-dom": "18.2.0",
23-
"react-native": "0.74.5",
24-
"react-native-safe-area-context": "4.10.5",
25-
"react-native-screens": "3.31.1",
26-
"react-native-web": "~0.19.10"
15+
"expo": "~52.0.46",
16+
"expo-constants": "~17.0.8",
17+
"expo-linking": "~7.0.5",
18+
"expo-router": "~4.0.21",
19+
"expo-status-bar": "~2.0.1",
20+
"expo-system-ui": "~4.0.9",
21+
"react": "18.3.1",
22+
"react-dom": "18.3.1",
23+
"react-native": "0.76.9",
24+
"react-native-safe-area-context": "4.12.0",
25+
"react-native-screens": "~4.4.0",
26+
"react-native-web": "~0.19.13"
2727
},
2828
"devDependencies": {
2929
"@babel/core": "^7.23.7",
30-
"@expo/webpack-config": "^19.0.0",
31-
"@types/react": "~18.2.14",
32-
"typescript": "~5.3.3"
30+
"@expo/webpack-config": "19.0.1",
31+
"@types/react": "~18.3.12",
32+
"typescript": "5.8.3"
33+
},
34+
"expo": {
35+
"doctor": {
36+
"reactNativeDirectoryCheck": {
37+
"listUnknownPackages": false
38+
}
39+
}
3340
}
3441
}

examples/with-react-native-web/packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
},
1717
"dependencies": {
1818
"react": "^18.2.0",
19-
"react-native": "0.74.5"
19+
"react-native": "0.76.9"
2020
}
2121
}

0 commit comments

Comments
 (0)