import { useLayoutEffect, useState } from "react"; import { View } from "react-native"; import stylesheet from "./stylesheet"; import { NCoreUIKitLocalize, NCoreUIKitTheme, PageContainer, CodeViewer, Header, Button, Modal, Text } from "ncore-ui-kit"; import { useNavigation } from "@react-navigation/native"; import type RootStackParamList from "../../../navigation/type"; import type { NativeStackNavigationProp } from "@react-navigation/native-stack"; const ModalPage = () => { const { localize } = NCoreUIKitLocalize.useContext(); const { spaces } = NCoreUIKitTheme.useContext(); const navigation = useNavigation>(); const [ isActive, setIsActive ] = useState(false); useLayoutEffect(() => { navigation.setOptions({ header: () =>
, headerShown: true }); }, []); return {localize("modal-desc")} {localize("components-modal")}