Can we render same route using navigator in react native?

Viewed 390

I have a view, lets say DynamicView. I am trying to push the same view(DynamicView)in navigator with different params.

this.props.navigator.push({
    component: DynamicView,
    params: {} //Different params
})
...
export default connect(mapStateToProps, mapDispatchToProps)(DynamicView)

DynamicView is connected with the redux flow. But I cannot access the latest state in the pushed component.

I want to know, whether is this the right thing to do? If yes, how can i access the latest state in the pushed component which is same as parent. If no, then is there any other approach to create the new route dynamically.

Any help is appreciated. Thanks.

React Native v0.40

1 Answers
Related