import { useLayoutEffect } from "react"; import { View } from "react-native"; import stylesheet from "./stylesheet"; import { NCoreUIKitLocalize, NCoreUIKitTheme, PaletteSwitcher, PageContainer, CodeViewer, 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"; const PaletteSwitcherPage = () => { const { localize } = NCoreUIKitLocalize.useContext(); const { spaces } = NCoreUIKitTheme.useContext(); const navigation = useNavigation>(); useLayoutEffect(() => { navigation.setOptions({ header: () =>
, headerShown: true }); }, []); return {localize("paletteSwitcher-desc")} {localize("components-paletteSwitcher")} {localize("usage")} "} language="tsx" /> ; }; export default PaletteSwitcherPage;