shubhnik / redux-react-navigation-demos

React-Native + Redux + Redux-Persist + React Navigation ( Authentication Flow with Redux demos)
152 stars 55 forks source link

Nestednavigation , logout action #7

Open Amerr opened 6 years ago

Amerr commented 6 years ago

Its a doubt rather than a issue , how the Logout action is handled in navigation reducer,

I checked code , where u reset using Navigation Action and again init with login routeName.

How does it work internally. i have usecase where

TabNavigator({ banner: {screen: banner}, login: {screen: login}, home: TabNav({ logout: { screen: logout }, eventListing: StackNav({ event: { screen: event } }) }) })

let say my im in Logout screen , how do i update stateForLoggedOut using NavigationAction reset.