Skip to content

Commit 4900f74

Browse files
feat(expo): align native prebuilt components with mobile SDKs (#8699)
Co-authored-by: Robert Soriano <sorianorobertc@gmail.com>
1 parent eb303a6 commit 4900f74

62 files changed

Lines changed: 1522 additions & 3115 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/bump-expo-native-sdks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@clerk/expo": patch
33
---
44

5-
Bump the native SDKs pulled into Expo: `clerk-ios` to `1.1.5` and `clerk-android-api`/`clerk-android-ui` to `1.0.26`.
5+
Bump the native SDKs pulled into Expo: `clerk-ios` to `1.2.0`.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@clerk/expo': minor
3+
---
4+
5+
Update Expo's beta native prebuilt components to more closely match the behavior of Clerk's native iOS and Android SDKs.
6+
7+
Previously, native auth and profile views relied on Expo-specific presentation behavior. `AuthView` and `UserProfileView` are now app-presented components, with dismissal handled through `onDismiss`. This also improves session synchronization between Clerk's JavaScript and native layers.
8+
9+
**Note:** This includes native changes, so rebuild your native app after upgrading (`expo prebuild --clean` or a new EAS build).

packages/expo/android/build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ plugins {
44
id 'org.jetbrains.kotlin.plugin.compose' version '2.1.20'
55
}
66

7-
// Required for React Native codegen to generate Fabric component descriptors
8-
if (project.hasProperty("newArchEnabled") && project.newArchEnabled == "true") {
9-
apply plugin: "com.facebook.react"
10-
}
7+
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
8+
apply from: expoModulesCorePlugin
9+
applyKotlinExpoModulesCorePlugin()
1110

1211
group = 'com.clerk.expo'
1312
version = '1.0.0'
@@ -72,7 +71,7 @@ android {
7271

7372
sourceSets {
7473
main {
75-
java.srcDirs = ['src/main/java', "${project.buildDir}/generated/source/codegen/java"]
74+
java.srcDirs = ['src/main/java']
7675
}
7776
}
7877
}
@@ -96,8 +95,7 @@ try {
9695
}
9796

9897
dependencies {
99-
// React Native
100-
implementation 'com.facebook.react:react-native:+'
98+
implementation project(':expo-modules-core')
10199

102100
// Credential Manager for Google Sign-In with nonce support
103101
implementation "androidx.credentials:credentials:$credentialsVersion"
Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<application>
3-
<!-- Clerk Auth Activity - hosts AuthView for sign-in/sign-up flows -->
4-
<activity
5-
android:name="expo.modules.clerk.ClerkAuthActivity"
6-
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
7-
android:exported="false"
8-
android:windowSoftInputMode="adjustResize" />
9-
10-
<!-- Clerk User Profile Activity - hosts UserProfileView for account management -->
11-
<activity
12-
android:name="expo.modules.clerk.ClerkUserProfileActivity"
13-
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
14-
android:exported="false"
15-
android:windowSoftInputMode="adjustResize" />
163
</application>
174
</manifest>

packages/expo/android/src/main/java/expo/modules/clerk/ClerkAuthActivity.kt

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

0 commit comments

Comments
 (0)