Skip to content

Commit 76178fc

Browse files
authored
feat(expo): support Expo SDK 58 (#9791)
1 parent aac3e81 commit 76178fc

10 files changed

Lines changed: 35 additions & 42 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/expo-native-components': patch
3+
---
4+
5+
Fix Android builds on Expo SDK 58. Compiling `@clerk/expo-native-components` no longer fails with `Unresolved reference 'LocalSavedStateRegistryOwner'`.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/expo-biometrics': patch
3+
---
4+
5+
Fix iOS builds on Expo SDK 58. `@clerk/expo-biometrics` no longer fails to compile with `cannot override with a stored property 'message'`.

‎.changeset/expo-sdk-58-support.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@clerk/expo': minor
3+
'@clerk/expo-passkeys': minor
4+
'@clerk/expo-google-signin': minor
5+
'@clerk/expo-native-components': minor
6+
'@clerk/expo-biometrics': minor
7+
---
8+
9+
Add Expo SDK 58 support.

‎.github/workflows/expo-native-build.yml‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,17 @@ jobs:
4545
fail-fast: false
4646
matrix:
4747
include:
48-
- expo-sdk: 54
49-
platform: android
50-
runner: blacksmith-8vcpu-ubuntu-2204
51-
- expo-sdk: 54
52-
platform: ios
53-
runner: blacksmith-6vcpu-macos-26
5448
- expo-sdk: 55
5549
platform: android
5650
runner: blacksmith-8vcpu-ubuntu-2204
5751
- expo-sdk: 55
5852
platform: ios
5953
runner: blacksmith-6vcpu-macos-26
60-
- expo-sdk: 57
54+
- expo-sdk: 58
6155
platform: android
6256
runner: blacksmith-8vcpu-ubuntu-2204
6357
run-e2e: true
64-
- expo-sdk: 57
58+
- expo-sdk: 58
6559
platform: ios
6660
runner: blacksmith-6vcpu-macos-26
6761
run-e2e: true

‎integration/templates/expo-native/package.sdk-54.json‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

integration/templates/expo-native/package.sdk-57.json renamed to integration/templates/expo-native/package.sdk-58.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"prebuild:ios": "expo prebuild --clean --platform ios"
1111
},
1212
"dependencies": {
13-
"expo": "~57.0.1",
14-
"react": "19.2.8",
15-
"react-dom": "19.2.8",
16-
"react-native": "0.86.0"
13+
"expo": "~58.0.12",
14+
"react": "19.3.0",
15+
"react-dom": "19.3.0",
16+
"react-native": "0.88.0"
1717
},
1818
"devDependencies": {
1919
"@babel/core": "^7.29.0",
20-
"@types/react": "~19.1.17",
21-
"typescript": "~5.9.3"
20+
"@types/react": "~19.3.0",
21+
"typescript": "~6.0.3"
2222
},
2323
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319"
2424
}

‎packages/expo-biometrics/ios/ClerkExpoBiometricsModule.swift‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import Foundation
33

44
final class ClerkBiometricsException: Exception {
55
private let errorCode: String
6-
private let message: String
6+
private let errorMessage: String
77

88
init(_ error: BiometricsError) {
99
errorCode = error.code.rawValue
10-
message = error.message
10+
errorMessage = error.message
1111
super.init()
1212
}
1313

1414
override var code: String { errorCode }
15-
override var reason: String { message }
15+
override var reason: String { errorMessage }
1616
}
1717

1818
struct BiometricAvailabilityResult: Record {

‎packages/expo-native-components/android/build.gradle‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ ext {
2828
composeVersion = "1.7.0"
2929
activityComposeVersion = "1.9.0"
3030
lifecycleVersion = "2.8.0"
31+
savedStateVersion = "1.4.0"
3132
}
3233

3334
def safeExtGet(prop, fallback) {
@@ -147,6 +148,7 @@ dependencies {
147148
implementation "androidx.activity:activity-compose:$activityComposeVersion"
148149
implementation "androidx.lifecycle:lifecycle-runtime-compose:$lifecycleVersion"
149150
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycleVersion"
151+
implementation "androidx.savedstate:savedstate-compose:$savedStateVersion"
150152

151153
testImplementation "junit:junit:4.13.2"
152154
}

‎pnpm-lock.yaml‎

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ packages:
44

55
catalogs:
66
peer-expo:
7-
expo: '>=54 <58'
7+
expo: '>=54 <59'
88
peer-react:
99
react: ^18.0.0 || ~19.0.3 || ~19.1.4 || ~19.2.3 || ~19.3.0-0
1010
react-dom: ^18.0.0 || ~19.0.3 || ~19.1.4 || ~19.2.3 || ~19.3.0-0

0 commit comments

Comments
 (0)