| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948 |
- import {
- useEffect
- } from "react";
- import {
- Platform,
- View
- } from "react-native";
- import type RootStackParamList from "./type";
- import stylesheet from "./stylesheet";
- import {
- NCoreUIKitEmbeddedMenu,
- NCoreUIKitLocalize,
- NCoreUIKitTheme,
- PaletteSwitcher,
- LocaleSwitcher,
- ThemeSwitcher,
- MainHeader
- } from "ncore-ui-kit";
- import {
- NavigationContainer,
- type LinkingOptions,
- getStateFromPath,
- useNavigation
- } from "@react-navigation/native";
- import TypesOverridePage from "../pages/coreFeatures/typesOverride";
- import {
- type NativeStackNavigationProp,
- createNativeStackNavigator
- } from "@react-navigation/native-stack";
- import {
- ComponentIcon,
- SettingsIcon,
- GoalIcon,
- HomeIcon
- } from "lucide-react-native";
- import NotificationIndicatorPage from "../pages/components/notificationIndicator";
- import HighlightButtonPage from "../pages/components/highlightButton";
- import PaletteSwitcherPage from "../pages/components/paletteSwitcher";
- import LocaleExamplesPage from "../pages/coreFeatures/localeExamples";
- import DateTimePickerPage from "../pages/components/dateTimePicker";
- import LocaleSwitcherPage from "../pages/components/localeSwitcher";
- import MarkdownEditorPage from "../pages/components/markdownEditor";
- import MarkdownViewerPage from "../pages/components/markdownViewer";
- import ThemeExamplesPage from "../pages/coreFeatures/themeExamples";
- import DateTimeSheetPage from "../pages/components/dateTimeSheet";
- import MonthSelectorPage from "../pages/components/monthSelector";
- import PageContainerPage from "../pages/components/pageContainer";
- import SystemToolbarPage from "../pages/components/systemToolbar";
- import TextAreaInputPage from "../pages/components/textAreaInput";
- import ThemeSwitcherPage from "../pages/components/themeSwitcher";
- import DefaultJSONsPage from "../pages/coreFeatures/defaultJSONs";
- import DateSelectorPage from "../pages/components/dateSelector";
- import EmbeddedMenuPage from "../pages/components/embeddedMenu";
- import NumericInputPage from "../pages/components/numericInput";
- import TimeSelectorPage from "../pages/components/timeSelector";
- import WebScrollbarPage from "../pages/components/webScrollbar";
- import YearSelectorPage from "../pages/components/yearSelector";
- import AvatarGroupPage from "../pages/components/avatarGroup";
- import BottomSheetPage from "../pages/components/bottomSheet";
- import RadioButtonPage from "../pages/components/radioButton";
- import SelectSheetPage from "../pages/components/selectSheet";
- import ToolsUsagePage from "../pages/coreFeatures/toolsUsage";
- import CodeEditorPage from "../pages/components/codeEditor";
- import CodeViewerPage from "../pages/components/codeViewer";
- import MainHeaderPage from "../pages/components/mainHeader";
- import SelectBoxPage from "../pages/components/selectBox";
- import SeperatorPage from "../pages/components/seperator";
- import StateCardPage from "../pages/components/stateCard";
- import TextInputPage from "../pages/components/textInput";
- import ImplementationPage from "../pages/implementation";
- import CheckBoxPage from "../pages/components/checkBox";
- import SiteLogoPage from "../pages/components/siteLogo";
- import SnackBarPage from "../pages/components/snackBar";
- import LoadingPage from "../pages/components/loading";
- import RowCardPage from "../pages/components/rowCard";
- import StickerPage from "../pages/components/sticker";
- import TooltipPage from "../pages/components/tooltip";
- import InstallationPage from "../pages/installation";
- import AvatarPage from "../pages/components/avatar";
- import ButtonPage from "../pages/components/button";
- import DialogPage from "../pages/components/dialog";
- import HeaderPage from "../pages/components/header";
- import SwitchPage from "../pages/components/switch";
- import ModalPage from "../pages/components/modal";
- import ToastPage from "../pages/components/toast";
- import ChipPage from "../pages/components/chip";
- import MenuPage from "../pages/components/menu";
- import TextPage from "../pages/components/text";
- import Home from "../pages/home";
- const RootStack = createNativeStackNavigator();
- const ComponentsStack = createNativeStackNavigator();
- const GettingStartedStack = createNativeStackNavigator();
- const CoreFeaturesStack = createNativeStackNavigator();
- const CoreFeaturesNav = () => {
- return <CoreFeaturesStack.Navigator
- initialRouteName="ToolsUsage"
- screenOptions={{
- headerShown: true
- }}
- >
- <CoreFeaturesStack.Screen
- component={ToolsUsagePage}
- name="ToolsUsage"
- />
- <CoreFeaturesStack.Screen
- component={ThemeExamplesPage}
- name="ThemeExamples"
- />
- <CoreFeaturesStack.Screen
- component={LocaleExamplesPage}
- name="LocaleExamples"
- />
- <CoreFeaturesStack.Screen
- component={TypesOverridePage}
- name="TypesOverride"
- />
- <CoreFeaturesStack.Screen
- component={DefaultJSONsPage}
- name="DefaultJSONs"
- />
- </CoreFeaturesStack.Navigator>;
- };
- const GettingStartedNav = () => {
- return <GettingStartedStack.Navigator
- initialRouteName="Installation"
- screenOptions={{
- headerShown: true
- }}
- >
- <GettingStartedStack.Screen
- component={InstallationPage}
- name="Installation"
- />
- <GettingStartedStack.Screen
- component={ImplementationPage}
- name="Implementation"
- />
- </GettingStartedStack.Navigator>;
- };
- const ComponentsNav = () => {
- return <ComponentsStack.Navigator
- initialRouteName="Text"
- screenOptions={{
- headerShown: true
- }}
- >
- <ComponentsStack.Screen
- component={AvatarPage}
- name="Avatar"
- />
- <ComponentsStack.Screen
- component={AvatarGroupPage}
- name="AvatarGroup"
- />
- <ComponentsStack.Screen
- component={BottomSheetPage}
- name="BottomSheet"
- />
- <ComponentsStack.Screen
- component={ButtonPage}
- name="Button"
- />
- <ComponentsStack.Screen
- component={CheckBoxPage}
- name="CheckBox"
- />
- <ComponentsStack.Screen
- component={CodeViewerPage}
- name="CodeViewer"
- />
- <ComponentsStack.Screen
- component={CodeEditorPage}
- name="CodeEditor"
- />
- <ComponentsStack.Screen
- component={ChipPage}
- name="Chip"
- />
- <ComponentsStack.Screen
- component={DateSelectorPage}
- name="DateSelector"
- />
- <ComponentsStack.Screen
- component={DateTimePickerPage}
- name="DateTimePicker"
- />
- <ComponentsStack.Screen
- component={DateTimeSheetPage}
- name="DateTimeSheet"
- />
- <ComponentsStack.Screen
- component={DialogPage}
- name="Dialog"
- />
- <ComponentsStack.Screen
- component={EmbeddedMenuPage}
- name="EmbeddedMenu"
- />
- <ComponentsStack.Screen
- component={HeaderPage}
- name="Header"
- />
- <ComponentsStack.Screen
- component={HighlightButtonPage}
- name="HighlightButton"
- />
- <ComponentsStack.Screen
- component={LoadingPage}
- name="Loading"
- />
- <ComponentsStack.Screen
- component={LocaleSwitcherPage}
- name="LocaleSwitcher"
- />
- <ComponentsStack.Screen
- component={MainHeaderPage}
- name="MainHeader"
- />
- <ComponentsStack.Screen
- component={MarkdownViewerPage}
- name="MarkdownViewer"
- />
- <ComponentsStack.Screen
- component={MarkdownEditorPage}
- name="MarkdownEditor"
- />
- <ComponentsStack.Screen
- component={MenuPage}
- name="Menu"
- />
- <ComponentsStack.Screen
- component={ModalPage}
- name="Modal"
- />
- <ComponentsStack.Screen
- component={MonthSelectorPage}
- name="MonthSelector"
- />
- <ComponentsStack.Screen
- component={NotificationIndicatorPage}
- name="NotificationIndicator"
- />
- <ComponentsStack.Screen
- component={NumericInputPage}
- name="NumericInput"
- />
- <ComponentsStack.Screen
- component={PageContainerPage}
- name="PageContainer"
- />
- <ComponentsStack.Screen
- component={PaletteSwitcherPage}
- name="PaletteSwitcher"
- />
- <ComponentsStack.Screen
- component={RadioButtonPage}
- name="RadioButton"
- />
- <ComponentsStack.Screen
- component={RowCardPage}
- name="RowCard"
- />
- <ComponentsStack.Screen
- component={SelectBoxPage}
- name="SelectBox"
- />
- <ComponentsStack.Screen
- component={SelectSheetPage}
- name="SelectSheet"
- />
- <ComponentsStack.Screen
- component={SeperatorPage}
- name="Seperator"
- />
- <ComponentsStack.Screen
- component={SiteLogoPage}
- name="SiteLogo"
- />
- <ComponentsStack.Screen
- component={SnackBarPage}
- name="SnackBar"
- />
- <ComponentsStack.Screen
- component={StateCardPage}
- name="StateCard"
- />
- <ComponentsStack.Screen
- component={StickerPage}
- name="Sticker"
- />
- <ComponentsStack.Screen
- component={SwitchPage}
- name="Switch"
- />
- <ComponentsStack.Screen
- component={SystemToolbarPage}
- name="SystemToolbar"
- />
- <ComponentsStack.Screen
- component={TextPage}
- name="Text"
- />
- <ComponentsStack.Screen
- component={TextAreaInputPage}
- name="TextAreaInput"
- />
- <ComponentsStack.Screen
- component={TextInputPage}
- name="TextInput"
- />
- <ComponentsStack.Screen
- component={ThemeSwitcherPage}
- name="ThemeSwitcher"
- />
- <ComponentsStack.Screen
- component={TimeSelectorPage}
- name="TimeSelector"
- />
- <ComponentsStack.Screen
- component={ToastPage}
- name="Toast"
- />
- <ComponentsStack.Screen
- component={TooltipPage}
- name="Tooltip"
- />
- <ComponentsStack.Screen
- component={WebScrollbarPage}
- name="WebScrollbar"
- />
- <ComponentsStack.Screen
- component={YearSelectorPage}
- name="YearSelector"
- />
- </ComponentsStack.Navigator>;
- };
- const RenderHomeIcon = ({
- color
- }: {
- color: keyof NCoreUIKit.IconContentColors;
- }) => {
- const {
- colors
- } = NCoreUIKitTheme.useContext();
- return <HomeIcon
- color={colors.content.icon[color]}
- />;
- };
- const RenderComponentIcon = ({
- color
- }: {
- color: keyof NCoreUIKit.IconContentColors;
- }) => {
- const {
- colors
- } = NCoreUIKitTheme.useContext();
- return <ComponentIcon
- color={colors.content.icon[color]}
- />;
- };
- const RenderGettingStartedIcon = ({
- color
- }: {
- color: keyof NCoreUIKit.IconContentColors;
- }) => {
- const {
- colors
- } = NCoreUIKitTheme.useContext();
- return <GoalIcon
- color={colors.content.icon[color]}
- />;
- };
- const RenderCoreFeaturesIcon = ({
- color
- }: {
- color: keyof NCoreUIKit.IconContentColors;
- }) => {
- const {
- colors
- } = NCoreUIKitTheme.useContext();
- return <SettingsIcon
- color={colors.content.icon[color]}
- />;
- };
- const RootNav = () => {
- const {
- activeTheme,
- spaces
- } = NCoreUIKitTheme.useContext();
- const {
- localize
- } = NCoreUIKitLocalize.useContext();
- const navigation = useNavigation<NativeStackNavigationProp<RootStackParamList>>();
- useEffect(() => {
- const currentMenuStatus = Platform.OS === "web" ? window.localStorage.getItem("main-menu-status") : "false";
- NCoreUIKitEmbeddedMenu.load({
- isCollapse: currentMenuStatus === "true" ? true : false,
- buttons: [
- {
- icon: ({
- color
- }) => <RenderHomeIcon
- color={color}
- />,
- redirectMain: "Home",
- isUseLocalize: true,
- title: "home"
- },
- {
- subButtons: [
- {
- redirectMain: "GettingStarted",
- redirectSub: "Installation",
- title: "installation",
- isUseLocalize: true
- },
- {
- redirectMain: "GettingStarted",
- redirectSub: "Implementation",
- title: "implementation",
- isUseLocalize: true
- }
- ],
- icon: ({
- color
- }) => <RenderGettingStartedIcon
- color={color}
- />,
- redirectMain: "GettingStarted",
- title: "gettingStarted",
- isCollapsible: true,
- isUseLocalize: true
- },
- {
- subButtons: [
- {
- redirectMain: "CoreFeatures",
- redirectSub: "ToolsUsage",
- title: "toolsUsage",
- isUseLocalize: true
- },
- {
- redirectMain: "CoreFeatures",
- redirectSub: "ThemeExamples",
- title: "themeExamples",
- isUseLocalize: true
- },
- {
- redirectSub: "LocaleExamples",
- redirectMain: "CoreFeatures",
- title: "localeExamples",
- isUseLocalize: true
- },
- {
- redirectMain: "CoreFeatures",
- redirectSub: "TypesOverride",
- title: "typesOverride",
- isUseLocalize: true
- },
- {
- redirectMain: "CoreFeatures",
- redirectSub: "DefaultJSONs",
- title: "defaultJSONs",
- isUseLocalize: true
- }
- ],
- icon: ({
- color
- }) => <RenderCoreFeaturesIcon
- color={color}
- />,
- redirectMain: "CoreFeatures",
- title: "coreFeatures",
- isCollapsible: true,
- isUseLocalize: true
- },
- {
- subButtons: [
- {
- redirectMain: "Components",
- redirectSub: "Text",
- title: "Text"
- },
- {
- redirectMain: "Components",
- redirectSub: "Button",
- title: "Button"
- },
- {
- redirectSub: "HighlightButton",
- redirectMain: "Components",
- title: "HighlightButton"
- },
- {
- redirectMain: "Components",
- redirectSub: "TextInput",
- title: "TextInput"
- },
- {
- redirectSub: "TextAreaInput",
- redirectMain: "Components",
- title: "TextAreaInput"
- },
- {
- redirectSub: "NumericInput",
- redirectMain: "Components",
- title: "NumericInput"
- },
- {
- redirectMain: "Components",
- redirectSub: "SelectBox",
- title: "SelectBox"
- },
- {
- redirectMain: "Components",
- redirectSub: "SelectSheet",
- title: "SelectSheet"
- },
- {
- redirectMain: "Components",
- redirectSub: "CheckBox",
- title: "CheckBox"
- },
- {
- redirectMain: "Components",
- redirectSub: "RadioButton",
- title: "RadioButton"
- },
- {
- redirectMain: "Components",
- redirectSub: "Switch",
- title: "Switch"
- },
- {
- redirectSub: "DateTimePicker",
- redirectMain: "Components",
- title: "DateTimePicker"
- },
- {
- redirectSub: "DateTimeSheet",
- redirectMain: "Components",
- title: "DateTimeSheet"
- },
- {
- redirectSub: "DateSelector",
- redirectMain: "Components",
- title: "DateSelector"
- },
- {
- redirectSub: "TimeSelector",
- redirectMain: "Components",
- title: "TimeSelector"
- },
- {
- redirectSub: "MonthSelector",
- redirectMain: "Components",
- title: "MonthSelector"
- },
- {
- redirectSub: "YearSelector",
- redirectMain: "Components",
- title: "YearSelector"
- },
- {
- redirectMain: "Components",
- redirectSub: "Avatar",
- title: "Avatar"
- },
- {
- redirectMain: "Components",
- redirectSub: "AvatarGroup",
- title: "AvatarGroup"
- },
- {
- redirectMain: "Components",
- redirectSub: "CodeViewer",
- title: "CodeViewer"
- },
- {
- redirectMain: "Components",
- redirectSub: "CodeEditor",
- title: "CodeEditor",
- isUseLocalize: true
- },
- {
- redirectSub: "SystemToolbar",
- redirectMain: "Components",
- title: "SystemToolbar",
- isUseLocalize: true
- },
- {
- redirectMain: "Components",
- redirectSub: "Chip",
- title: "Chip"
- },
- {
- redirectMain: "Components",
- redirectSub: "Sticker",
- title: "Sticker"
- },
- {
- redirectMain: "Components",
- redirectSub: "RowCard",
- title: "RowCard"
- },
- {
- redirectMain: "Components",
- redirectSub: "StateCard",
- title: "StateCard"
- },
- {
- redirectMain: "Components",
- redirectSub: "Dialog",
- title: "Dialog"
- },
- {
- redirectMain: "Components",
- redirectSub: "Modal",
- title: "Modal"
- },
- {
- redirectMain: "Components",
- redirectSub: "BottomSheet",
- title: "BottomSheet"
- },
- {
- redirectMain: "Components",
- redirectSub: "SnackBar",
- title: "SnackBar"
- },
- {
- redirectMain: "Components",
- redirectSub: "Toast",
- title: "Toast"
- },
- {
- redirectMain: "Components",
- redirectSub: "Tooltip",
- title: "Tooltip"
- },
- {
- redirectMain: "Components",
- redirectSub: "Loading",
- title: "Loading"
- },
- {
- redirectSub: "NotificationIndicator",
- title: "NotificationIndicator",
- redirectMain: "Components"
- },
- {
- redirectSub: "MarkdownViewer",
- redirectMain: "Components",
- title: "MarkdownViewer"
- },
- {
- redirectSub: "MarkdownEditor",
- redirectMain: "Components",
- title: "MarkdownEditor"
- },
- {
- redirectMain: "Components",
- redirectSub: "Seperator",
- title: "Seperator"
- },
- {
- redirectMain: "Components",
- redirectSub: "SiteLogo",
- title: "SiteLogo"
- },
- {
- redirectSub: "WebScrollbar",
- redirectMain: "Components",
- title: "WebScrollbar"
- },
- {
- redirectSub: "PageContainer",
- redirectMain: "Components",
- title: "PageContainer"
- },
- {
- redirectMain: "Components",
- redirectSub: "Header",
- title: "Header"
- },
- {
- redirectMain: "Components",
- redirectSub: "MainHeader",
- title: "MainHeader"
- },
- {
- redirectMain: "Components",
- redirectSub: "Menu",
- title: "Menu"
- },
- {
- redirectSub: "EmbeddedMenu",
- redirectMain: "Components",
- title: "EmbeddedMenu"
- },
- {
- redirectSub: "ThemeSwitcher",
- redirectMain: "Components",
- title: "ThemeSwitcher"
- },
- {
- redirectSub: "PaletteSwitcher",
- redirectMain: "Components",
- title: "PaletteSwitcher"
- },
- {
- redirectSub: "LocaleSwitcher",
- redirectMain: "Components",
- title: "LocaleSwitcher"
- }
- ],
- redirectMain: "Components",
- icon: ({
- color
- }) => <RenderComponentIcon
- color={color}
- />,
- isCollapsible: true,
- isUseLocalize: true,
- title: "components"
- }
- ],
- isWorkWithSafeAreaView: false,
- siteLogoProps: {
- title: localize("menu"),
- isShowIcon: false
- },
- isAutoClosed: true,
- id: "main-menu"
- });
- NCoreUIKitLocalize.addEventListener("state", updateLocaleStorage);
- NCoreUIKitEmbeddedMenu.addEventListener("state", updateStorage);
- NCoreUIKitTheme.addEventListener("state", updateThemeStorage);
- }, []);
- const updateStorage = () => {
- if(Platform.OS === "web") {
- const data = NCoreUIKitEmbeddedMenu.state.data;
- if(data && data.length) {
- const currentMenu = data.find(dI => dI.id === "main-menu");
- if(currentMenu) {
- window.localStorage.setItem("main-menu-status", String(currentMenu.isCollapse));
- }
- }
- }
- };
- const updateLocaleStorage = () => {
- if(Platform.OS === "web") {
- const localeData = NCoreUIKitLocalize.state;
- if(localeData) {
- window.localStorage.setItem("locale", JSON.stringify(localeData));
- }
- }
- };
- const updateThemeStorage = () => {
- if(Platform.OS === "web") {
- const themeData = NCoreUIKitTheme.state;
- if(themeData) {
- window.localStorage.setItem("theme", JSON.stringify(themeData));
- }
- }
- };
- return <MainHeader
- siteLogoProps={{
- imageUrl: activeTheme.indexOf("dark") !== -1 ? "http://ncore.nibgat.space/assets/images/darklogo.png" : "http://ncore.nibgat.space/assets/images/ncorelogo.png",
- subTitle: "Design System - UI Kit",
- onPress: () => {
- navigation.navigate("Home");
- },
- imageProps: {
- resizeMode: "stretch"
- },
- title: "NİBGAT® | NCore",
- isWorkWithAction: true,
- isWorkWithFlex1: true
- }}
- renderRight={() => {
- return <View
- style={[
- stylesheet.rightContainer,
- {
- gap: spaces.spacingMd
- }
- ]}
- >
- <LocaleSwitcher/>
- <PaletteSwitcher/>
- <ThemeSwitcher/>
- </View>;
- }}
- isWorkWithSeperator={true}
- isWorkWithSticky={true}
- glassEffect={5}
- >
- <NCoreUIKitEmbeddedMenu.Render
- navigation={navigation as unknown as NCoreUIKit.Navigation}
- id="main-menu"
- >
- <RootStack.Navigator
- initialRouteName="Home"
- screenOptions={{
- headerShown: false
- }}
- >
- <RootStack.Screen
- component={GettingStartedNav}
- name="GettingStarted"
- />
- <RootStack.Screen
- component={CoreFeaturesNav}
- name="CoreFeatures"
- />
- <RootStack.Screen
- component={Home}
- name="Home"
- />
- <RootStack.Screen
- component={ComponentsNav}
- name="Components"
- />
- </RootStack.Navigator>
- </NCoreUIKitEmbeddedMenu.Render>
- </MainHeader>;
- };
- const Navigation = () => {
- return <NavigationContainer
- documentTitle={{
- formatter: (options, route) => `${options?.title ?? route?.name ?? "Home"} || NCore - Design System | UI Kit`
- }}
- linking={{
- config: {
- screens: {
- Components: {
- screens: {
- NotificationIndicator: "notificationindicator",
- HighlightButton: "highlightbutton",
- PaletteSwitcher: "paletteswitcher",
- DateTimePicker: "datetimepicker",
- LocaleSwitcher: "localeswitcher",
- MarkdownEditor: "markdowneditor",
- MarkdownViewer: "markdownviewer",
- DateTimeSheet: "datetimesheet",
- MonthSelector: "monthselector",
- PageContainer: "pagecontainer",
- SystemToolbar: "systemtoolber",
- TextAreaInput: "textareainput",
- ThemeSwitcher: "themeswitcher",
- DateSelector: "dateselector",
- EmbeddedMenu: "embeddedmenu",
- NumericInput: "numericinput",
- TimeSelector: "timeselector",
- WebScrollbar: "webscrollbar",
- YearSelector: "yearselector",
- AvatarGroup: "avatargroup",
- BottomSheet: "bottomsheet",
- RadioButton: "radiobutton",
- SelectSheet: "selectsheet",
- CodeEditor: "codeeditor",
- CodeViewer: "codeviewer",
- MainHeader: "mainheader",
- SelectBox: "selectbox",
- Seperator: "seperator",
- StateCard: "statecard",
- TextInput: "textinput",
- CheckBox: "checkbox",
- SiteLogo: "sitelogo",
- SnackBar: "snackbar",
- Loading: "loading",
- RowCard: "rowcard",
- Sticker: "sticker",
- Tooltip: "tooltip",
- Avatar: "avatar",
- Button: "button",
- Dialog: "dialog",
- Header: "header",
- Switch: "switch",
- Modal: "modal",
- Toast: "toast",
- Chip: "chip",
- Menu: "menu",
- Text: "text"
- },
- path: "components"
- },
- CoreFeatures: {
- screens: {
- LocaleExamples: "localeexamples",
- ThemeExamples: "themeexamples",
- TypesOverride: "typesoverride",
- DefaultJSONs: "defaultjsons",
- ToolsUsage: "toolsusage"
- },
- path: "corefeatures"
- },
- GettingStarted: {
- screens: {
- Implementation: "implementation",
- Installation: "installation"
- },
- path: "gettingstarted"
- },
- Home: "home"
- }
- },
- getStateFromPath: (path, options) => {
- return getStateFromPath(path.toLowerCase(), options);
- },
- prefixes: [
- "http://localhost:3000",
- "https://ncore.nibgat.space"
- ]
- } as LinkingOptions<RootStackParamList>}
- >
- <RootNav/>
- </NavigationContainer>;
- };
- export default Navigation;
|