Drawer navigation screen broken, after parent state has changed

Viewed 24

When I change state from custom bottom bar (Parent root's state), screen looks weird. I don't catch my mistake.

Does parent screen's state affect on the child screens width?

 const [loggedUser, setLoggedUser] = useState<any>();

  <NavigationContainer
    ref={navigationRef}>
    {loginState?.loginToken === null ? (
      <AuthStackScreens />
    ) : (
        <AppContainer />
    )}
  </NavigationContainer>

AppContainer's structure looks like this.

  - Stack.Navigator
      - Drawer.Navigator
         - Stack Navigation 1 (Tabbar: Custom bottom bar)
           - Contact
           - Others ...
         - Stack Navigation 2 
      - ...
      - ...
      - ...

I hope you guys suggest me solution.

0 Answers
Related