Home / Companies / Clerk / Blog / Post Details
Content Deep Dive

How to use SwiftUI components in a React Expo and Clerk app

Blog post from Clerk

Post Details
Company
Date Published
Author
Roy Anger
Word Count
7,487
Language
English
Hacker News Points
-
Summary

Clerk's @clerk/expo package provides a streamlined way to integrate native authentication components into React Native applications using Expo, featuring components like AuthView, UserButton, and UserProfileView that render as native SwiftUI views on iOS and Jetpack Compose on Android. These components utilize system-level credential pickers for secure authentication, avoiding the vulnerabilities associated with WebView OAuth flows. The tutorial emphasizes the advantages of native authentication, such as improved security and user experience, by demonstrating the integration of Google and Apple Sign-In, which adhere to modern standards like RFC 8252 and RFC 9700. Clerk's native components support features like two-way session synchronization, user profile management, and route protection through Expo Router, offering a cohesive solution for mobile app authentication. The package remains in public beta with a stable API, but developers should anticipate minor breaking changes before the general release. Additionally, the package offers customization options through clerk-theme.json for theming and supports passkey and biometric authentication, enhancing the overall security and usability of the authentication process.