Can we get navigator object in redux so that we can dispatch push pop in thunk action creator ?
How we can get navigator object in redux so that we can dispatch push pop in thunk action creator? Description : Hi the react-native-navigation is very good in terms of performance . I am new to react-native-navigation earlier i was working on react-navigation in which we can get navigator object in redux for handing push pop but in this navigation how we can get that or please mention the steps to do the same task Thanks
import { Navigation } from "react-native-navigation"
// inside your redux-thunk action
export const doSomeActionWithThunk = () => async (dispatch, getState) => {
..
dispatch({ ...
..
Navigation.push..
Navigation.pop..
}
Don't forget you can await a Navigation.push/pop so it fits perfectly inside thunks as is.
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the react-native-navigation tag.
Thanks @ItsNoHax and @hisothreed
how are we able to do Navigation.push without a this.props.componentId
just pass this.props.componentId in your redux action. @gethabit