React-native-router-flux: How to refresh after Actions.pop()?

Created on 15 Apr 2016  Â·  5Comments  Â·  Source: aksonov/react-native-router-flux

Version

v3 is SLOW for Android right now (because React Native ExperimentalNavigation is slow), see #355, no need to create new issue!
Tell us which versions you are using (react native 0.22 is required for v3!):

  • react-native-router-flux v3.2.2
  • react-native v0.23.0

Expected behaviour

Say there is a listview, when choose an item from the list, push the detail page,
in the detail page use Actions.pop() back to the list page
I want the listview get refreshed right after the Actions.pop()
How can I implement this?please help me...

Actual behaviour

Steps to reproduce

1.
2.
3.

Most helpful comment

It will be good addition, PR is welcome!

On 27 Apr 2016, at 18:12, Alon Burg [email protected] wrote:

Doesn't it make sense for pop({params}) to act like pop() + refresh({params}) ?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub https://github.com/aksonov/react-native-router-flux/issues/529#issuecomment-215134442

All 5 comments

Actions.pop();
Actions.refresh(); ?

@Elyx0
: ), thank you, it works!

Doesn't it make sense for pop({params}) to act like pop() + refresh({params}) ?

It will be good addition, PR is welcome!

On 27 Apr 2016, at 18:12, Alon Burg [email protected] wrote:

Doesn't it make sense for pop({params}) to act like pop() + refresh({params}) ?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub https://github.com/aksonov/react-native-router-flux/issues/529#issuecomment-215134442

I'm looking at Reducer.js POP_ACTION and wanted to add ...props similarly to refresh but it doesn't seem like it's working out

Was this page helpful?
0 / 5 - 0 ratings