import { useLayoutEffect, useState } from "react"; import { View } from "react-native"; import stylesheet from "./stylesheet"; import { NCoreUIKitLocalize, NCoreUIKitTheme, PageContainer, CodeViewer, StateCard, TextInput, Header, 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"; import { Home as HomeIcon } from "lucide-react-native"; const StateCardPage = () => { const { radiuses, borders, spaces, colors } = NCoreUIKitTheme.useContext(); const { localize } = NCoreUIKitLocalize.useContext(); const navigation = useNavigation>(); const [ title, setTitle ] = useState(""); const [ subTitle, setSubTitle ] = useState(""); const [ value, setValue ] = useState(""); useLayoutEffect(() => { navigation.setOptions({ header: () =>
, headerShown: true }); }, []); return {localize("stateCard-desc")} } subTitle={ subTitle || localize("stateCard-exampleSubTitle") } title={ title || localize("stateCard-exampleTitle") } /> {localize("usage")} "} language="tsx" /> ; }; export default StateCardPage;