Child count may be incorrect after adding drawer navigator #415
-
ContextHey everyone, I'm facing a weird problem. I had following two major requirements in my app:
I solved the first step, by simply using the useIsFirstTime hook by manually setting the value to true like this:
When I did this every-thing was working fine and the user was taken back to onboarding screen everytime the option was pressed. But when I did this I was using the tab navigator which comes with the template. For the second step, I installed the drawer navigator and wrapped the tabs navigator within it like this:
and then placed the (app) folder with the (drawer) folder with a layout file like this:
The ProblemThe Drawer and the tabs are working properly but now when I reset the onboarding flow I get this error: Also an important thing to not is that it works without any issue on expo go, but development build and APK crashes... Is there something I am doing wrong how can I solve this any help would be appreciated. TIA |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To make sure i can help can you provide a overview of your app folder |
Beta Was this translation helpful? Give feedback.
Hey @yjose thanks for the reply. After doing some research I found out that it was the issue with react-native-screens according to this https://github.com/software-mansion/react-native-screens/issues/2491. I had @4.0.0 in my project upgraded to @4.2.0, which fixed the problem.