import { useLayoutEffect } from "react"; import { View } from "react-native"; import stylesheet from "./stylesheet"; import { NCoreUIKitLocalize, NCoreUIKitTheme, LocaleSwitcher, PageContainer, Button, 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 { ChevronLeftIcon, ChevronRightIcon } from "lucide-react-native"; const LocaleExamples = () => { const { colors, spaces } = NCoreUIKitTheme.useContext(); const { localize, activeLocale } = NCoreUIKitLocalize.useContext(); const navigation = useNavigation>(); useLayoutEffect(() => { navigation.setOptions({ header: () =>
, headerShown: true }); }, [ navigation, localize ]); return {localize("localeExamples-title")} {localize("localeExamples-desc")} {localize("localeExamples-languageSwitcher")} {localize("localeExamples-localizedTexts")} {localize("localeExamples-currentLanguage")} {activeLocale} "hello-world" key {localize("hello-world")} "menu" key {localize("menu")} "installation" key {localize("installation")}