Skip to content

Commit 17d4511

Browse files
feat: Upgrade for Expo v52 compatibility (#183)
* fix: remove obsolete plugins * fix: fix variable assignment Co-authored-by: Aiden Petersen <[email protected]>
1 parent b668ab0 commit 17d4511

File tree

9 files changed

+21
-163
lines changed

9 files changed

+21
-163
lines changed

apps/ExampleApp/app.config.ts

-21
This file was deleted.

apps/ExampleApp/app.json

-3
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,9 @@
4949
"expo-build-properties",
5050
{
5151
"ios": {
52-
"newArchEnabled": false,
53-
"flipper": false,
5452
"deploymentTarget": "15.1"
5553
},
5654
"android": {
57-
"newArchEnabled": false,
5855
"compileSdkVersion": 35
5956
}
6057
}

apps/ExampleApp/app/app.tsx

+7-5
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const config = {
5555
}
5656

5757
interface AppProps {
58-
hideSplashScreen: () => Promise<boolean>
58+
hideSplashScreen: () => Promise<void>
5959
}
6060

6161
/**
@@ -76,10 +76,12 @@ function App(props: AppProps) {
7676
const { rehydrated } = useInitialRootStore(() => {
7777
// This runs after the root store has been initialized and rehydrated.
7878

79-
// If your initialization scripts run very fast, it's good to show the splash screen for just a bit longer to prevent flicker.
80-
// Slightly delaying splash screen hiding for better UX; can be customized or removed as needed,
81-
// Note: (vanilla Android) The splash-screen will not appear if you launch your app via the terminal or Android Studio. Kill the app and launch it normally by tapping on the launcher icon. https://stackoverflow.com/a/69831106
82-
// Note: (vanilla iOS) You might notice the splash-screen logo change size. This happens in debug/development mode. Try building the app for release.
79+
// If your initialization scripts run very fast, it's good to show the splash screen for just a bit longer to
80+
// prevent flicker. Slightly delaying splash screen hiding for better UX; can be customized or removed as needed,
81+
// Note: (vanilla Android) The splash-screen will not appear if you launch your app via the terminal or Android
82+
// Studio. Kill the app and launch it normally by tapping on the launcher icon.
83+
// https://stackoverflow.com/a/69831106 Note: (vanilla iOS) You might notice the splash-screen logo change size.
84+
// This happens in debug/development mode. Try building the app for release.
8385
setTimeout(hideSplashScreen, 500)
8486
})
8587

apps/ExampleApp/app/screens/HomeScreen/HomeScreen.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const HomeScreen: FC<HomeScreenProps> = observer(function HomeScreen() {
2626
},
2727
[navigation],
2828
)
29+
2930
return (
3031
<Screen style={$root} preset="fixed">
3132
<View style={$shadowSpace}>

apps/ExampleApp/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"react": "18.3.1",
6060
"react-dom": "^18.3.1",
6161
"react-native": "^0.76.0",
62+
"react-native-device-info": "^14.0.4",
6263
"react-native-gesture-handler": "^2.20.0",
6364
"react-native-reanimated": "^3.16.1",
6465
"react-native-safe-area-context": "^4.12.0",

apps/ExampleApp/plugins/withFlipperDisabled.ts

-58
This file was deleted.

apps/ExampleApp/plugins/withSplashScreen.ts

-74
This file was deleted.

modules/react-native-mlkit-face-detection/ios/RNMLKitFaceDetectorResult.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ struct RNMLKitRect: Record {
127127
static func fromCGRect(rect: CGRect) -> RNMLKitRect {
128128
var expoRect = RNMLKitRect()
129129

130-
var origin = RNMLKitPoint()
130+
let origin = RNMLKitPoint()
131131
origin.x = rect.origin.x
132132
origin.y = rect.origin.y
133133

134-
var size = RNMLKitPoint()
134+
let size = RNMLKitPoint()
135135
size.x = rect.width
136136
size.y = rect.height
137137

yarn.lock

+10
Original file line numberDiff line numberDiff line change
@@ -11466,6 +11466,7 @@ __metadata:
1146611466
react: 18.3.1
1146711467
react-dom: ^18.3.1
1146811468
react-native: ^0.76.0
11469+
react-native-device-info: ^14.0.4
1146911470
react-native-gesture-handler: ^2.20.0
1147011471
react-native-reanimated: ^3.16.1
1147111472
react-native-safe-area-context: ^4.12.0
@@ -19035,6 +19036,15 @@ __metadata:
1903519036
languageName: node
1903619037
linkType: hard
1903719038

19039+
"react-native-device-info@npm:^14.0.4":
19040+
version: 14.0.4
19041+
resolution: "react-native-device-info@npm:14.0.4"
19042+
peerDependencies:
19043+
react-native: "*"
19044+
checksum: aa839dbe7df1246a4b5f9bcfeb3d4cc4be585f13a0d3ff6a03f57a0c2cfe7590291ac292dda4c51fd8765f94c870857676463e8e2f1660b057f3ae2b4335db29
19045+
languageName: node
19046+
linkType: hard
19047+
1903819048
"react-native-flipper@npm:^0.164.0":
1903919049
version: 0.164.0
1904019050
resolution: "react-native-flipper@npm:0.164.0"

0 commit comments

Comments
 (0)