diff --git a/src/App.tsx b/src/App.tsx index 87a39773..7bedde5e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -114,8 +114,10 @@ function RNGalleryScreenWrapper({navigation}) { } function RenderDrawerItem(props, i: number) { + const isDrawerOpen = getIsDrawerOpenFromState(props.navigation.getState()); return ( { return {RNGalleryList[i].key}; @@ -141,9 +143,14 @@ function RenderDrawer(props) { // @ts-ignore function CustomDrawerContent(props) { + const isDrawerOpen = getIsDrawerOpenFromState(props.navigation.getState()); + return ( { return Home; }} @@ -166,6 +176,9 @@ function CustomDrawerContent(props) { /> {RenderDrawer(props)} { return Settings; }}