21 lines
741 B
TypeScript
21 lines
741 B
TypeScript
// Metro module 13754 (f13755).
|
|
import { useLayoutEffect } from "react";
|
|
import { WebAuthnScreens } from "../WebAuthnConstants";
|
|
import { getScreens } from "./WebAuthnScreens";
|
|
import { Navigator } from "../../../design/components/Navigator/native/Navigator.native";
|
|
export default function UserSettingsWebAuthn(props) {
|
|
const { navigation, initialRouteName = WebAuthnScreens.INIT, showNav = false } = props;
|
|
const headerShown = showNav;
|
|
const screens = getScreens({
|
|
isModal: false
|
|
});
|
|
useLayoutEffect(() => {
|
|
navigation.setOptions({
|
|
headerShown
|
|
});
|
|
});
|
|
return <Navigator screens={screens} initialRouteName={initialRouteName} initialRouteStack={[{
|
|
name: initialRouteName
|
|
}]} useContainer={false} />;
|
|
};
|