Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fullscreen-auth-view.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/expo": patch
---

Fix native iOS auth view presentation for full screen UIViewController flows.
7 changes: 7 additions & 0 deletions .changeset/remove-expo-present-auth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@clerk/expo': major
---

Remove unused Expo prebuilt-view bridge code: the native `presentAuth` and `presentUserProfile` bridges, Android presentation activities/factory paths, the user-profile modal hook, and stale `Inline*` source files now superseded by app-presented `AuthView` and `UserProfileView`.

Align `UserButton` with the native Clerk SDKs by wrapping the platform-native user button, letting it present the user profile from the button itself.
13 changes: 0 additions & 13 deletions packages/expo/android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application>
<!-- Clerk Auth Activity - hosts AuthView for sign-in/sign-up flows -->
<activity
android:name="expo.modules.clerk.ClerkAuthActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
android:exported="false"
android:windowSoftInputMode="adjustResize" />

<!-- Clerk User Profile Activity - hosts UserProfileView for account management -->
<activity
android:name="expo.modules.clerk.ClerkUserProfileActivity"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
</application>
</manifest>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ import androidx.savedstate.compose.LocalSavedStateRegistryOwner
import androidx.savedstate.setViewTreeSavedStateRegistryOwner
import com.clerk.api.Clerk
import com.clerk.ui.auth.AuthView
import com.facebook.react.bridge.Arguments
import com.facebook.react.bridge.ReactContext
import com.facebook.react.uimanager.events.RCTEventEmitter
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch

Expand Down Expand Up @@ -117,10 +114,7 @@ class ClerkAuthNativeView(context: Context) : FrameLayout(context) {
if (currentSession != null && currentId != initialSessionId && !authCompletedSent) {
debugLog(TAG, "Auth completed - new session: $currentId (initial: $initialSessionId)")
authCompletedSent = true
sendEvent("signInCompleted", mapOf(
"sessionId" to currentSession.id,
"type" to "signIn"
))
ClerkExpoModule.emitAuthStateChange("signedIn", currentSession.id)
}
}

Expand Down Expand Up @@ -156,22 +150,6 @@ class ClerkAuthNativeView(context: Context) : FrameLayout(context) {
}
}

private fun sendEvent(type: String, data: Map<String, Any?>) {
val reactContext = context as? ReactContext ?: return
val eventData = Arguments.createMap().apply {
putString("type", type)
// Serialize data as JSON string for codegen event
val jsonString = try {
org.json.JSONObject(data).toString()
} catch (e: Exception) {
"{}"
}
putString("data", jsonString)
}
reactContext.getJSModule(RCTEventEmitter::class.java)
.receiveEvent(id, "onAuthEvent", eventData)
}

companion object {
fun findActivity(context: Context): ComponentActivity? {
var ctx: Context? = context
Expand Down
Loading
Loading