Skip to content

Commit

Permalink
omitting required children prop
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzitelli committed Feb 3, 2023
1 parent 3bb0197 commit 1ed4ebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rn-navio",
"version": "0.0.2-rc.17",
"version": "0.0.2-rc.18",
"description": "🧭 Navio - navigation library for React Native (Expo). Build the app's layout in one place and use benefits of types predictibility. Built on top of React Navigation (RNN will be added soon).",
"author": "Batyr <dev@batyr.io>",
"homepage": "https://github.com/kanzitelli/rn-navio",
Expand Down
2 changes: 1 addition & 1 deletion src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type TScreenData<Props = {}> =
};
export type TStackDataObj<ScreensName> = {
screens: ScreensName[];
navigatorProps?: NativeStackNavigatorProps;
navigatorProps?: Omit<ExtractProps<NativeStackNavigatorProps>, 'children'>; // omitting required children prop
};
export type TStackData<ScreensName> = ScreensName[] | TStackDataObj<ScreensName>;
export type TTabContentData<ScreensName, StacksName> = {
Expand Down

0 comments on commit 1ed4ebd

Please sign in to comment.