You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm creating a shop app and I'm using react-native-router-flux as a router.
Currently I have just few scenes like product list, product info, basket, checkout.
But I need to create a navigation. I have JSON with whole navigation structure, where ID of category is the ID for call to API when ProductList scene calls componentDidMount().
But I don't know how to
a) use this same scene but with additional parameters and refresh it -- I suppose that I should do something like Actions.refresh({ key: PRODUCT_LIST, params: { categoryId: 12345 } })?
b) how to handle this same scene transitions history? I mean if I'll do some Actions.refresh() how can I go back to previous categories I refreshed before?
As a state manager in the app, I'm using Redux. But I'm not using it for router (I had some issues to pair RNRF and Redux).
Or maybe you have other ideas how to handle this case?
Best regards,
Marcin
The text was updated successfully, but these errors were encountered:
Hello,
I'm creating a shop app and I'm using react-native-router-flux as a router.
Currently I have just few scenes like product list, product info, basket, checkout.
But I need to create a navigation. I have JSON with whole navigation structure, where ID of category is the ID for call to API when ProductList scene calls componentDidMount().
But I don't know how to
a) use this same scene but with additional parameters and refresh it -- I suppose that I should do something like
Actions.refresh({ key: PRODUCT_LIST, params: { categoryId: 12345 } })
?b) how to handle this same scene transitions history? I mean if I'll do some Actions.refresh() how can I go back to previous categories I refreshed before?
As a state manager in the app, I'm using Redux. But I'm not using it for router (I had some issues to pair RNRF and Redux).
Or maybe you have other ideas how to handle this case?
Best regards,
Marcin
The text was updated successfully, but these errors were encountered: