import { useLayoutEffect, useState } from "react"; import { View } from "react-native"; import stylesheet from "./stylesheet"; import { NCoreUIKitLocalize, NCoreUIKitTheme, PageContainer, BottomSheet, CodeViewer, Button, Header, Switch, 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 BottomSheetPage = () => { const { radiuses, borders, spaces, colors } = NCoreUIKitTheme.useContext(); const { localize } = NCoreUIKitLocalize.useContext(); const navigation = useNavigation>(); const [ isWorkWithPortal, setIsWorkWithPortal ] = useState(true); const [ isSwipeClose, setIsSwipeClose ] = useState(true); const [ isShowHandle, setIsShowHandle ] = useState(true); const [ isActive, setIsActive ] = useState(false); useLayoutEffect(() => { navigation.setOptions({ header: () =>
, headerShown: true }); }, []); return {localize("bottomSheet-desc")}