import type { JSX } from 'react'; import type { StyleProp, ViewStyle } from 'react-native'; import type { EmbeddedNavigationProps } from './EmbeddedNavigation.types'; import type { UserProfileCustomDestination, UserProfileCustomPage } from './UserProfileCustomPages'; /** * Props for the UserProfileView component. */ export interface UserProfileViewProps extends EmbeddedNavigationProps { /** * Whether the inline profile view shows a dismiss button. * * This controls the native view's built-in dismiss button. It does not present * a modal; render `UserProfileView` inside your own `Modal`, sheet, or route. * * @default true */ isDismissible?: boolean; /** * Style applied to the container view. */ style?: StyleProp; /** * Called when the user dismisses the native profile view. */ onDismiss?: () => void; /** Custom pages displayed as rows in the root profile screen. */ customPages?: UserProfileCustomPage[]; /** Custom destinations that can be pushed from a custom page without creating a root profile row. */ customDestinations?: UserProfileCustomDestination[]; } /** * A pre-built native component for managing the user's profile and account settings. * * `UserProfileView` renders inline within your React Native view hierarchy, powered by: * - **iOS**: clerk-ios (SwiftUI) - https://github.com/clerk/clerk-ios * - **Android**: clerk-android (Jetpack Compose) - https://github.com/clerk/clerk-android * * To present the profile, render it inside your own `Modal`, sheet, or route. * * To push the profile onto your own navigation stack, hide the route's header and * pass `onHostBack` so Clerk's own chrome takes over. * * Sign-out is detected automatically and synced with the JS SDK. Use `useAuth()` in a * `useEffect` to react to sign-out. * * @example * ```tsx * import { UserProfileView } from '@clerk/expo/native-components'; * import { useAuth } from '@clerk/expo'; * * export default function ProfileScreen() { * const { isSignedIn } = useAuth(); * * useEffect(() => { * if (!isSignedIn) router.replace('/sign-in'); * }, [isSignedIn]); * * return ( * }, * { path: 'docs', label: 'Docs', icon: 'book', href: 'https://clerk.com/docs' }, * ]} * customDestinations={[ * { path: 'invoice-details', label: 'Invoice details', content: }, * ]} * /> * ); * } * ``` * * @see {@link https://clerk.com/docs/components/user/user-profile} Clerk UserProfile Documentation */ export declare function UserProfileView({ isDismissible, style, onDismiss, onHostBack, customPages, customDestinations, }: UserProfileViewProps): JSX.Element; //# sourceMappingURL=UserProfileView.d.ts.map