From 1ed4ebde857755b302b275f96831e5119244b58d Mon Sep 17 00:00:00 2001 From: Batyr Kanzitdinov Date: Fri, 3 Feb 2023 19:09:19 +0100 Subject: [PATCH] omitting required children prop --- package.json | 2 +- src/types.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ba25ca3..8f0cd4e 100644 --- a/package.json +++ b/package.json @@ -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 ", "homepage": "https://github.com/kanzitelli/rn-navio", diff --git a/src/types.tsx b/src/types.tsx index a38de90..6a51f5f 100644 --- a/src/types.tsx +++ b/src/types.tsx @@ -27,7 +27,7 @@ export type TScreenData = }; export type TStackDataObj = { screens: ScreensName[]; - navigatorProps?: NativeStackNavigatorProps; + navigatorProps?: Omit, 'children'>; // omitting required children prop }; export type TStackData = ScreensName[] | TStackDataObj; export type TTabContentData = {