Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't refresh renderBackButton #3010

Closed
schlaegerz opened this issue Apr 23, 2018 · 2 comments
Closed

Can't refresh renderBackButton #3010

schlaegerz opened this issue Apr 23, 2018 · 2 comments

Comments

@schlaegerz
Copy link

schlaegerz commented Apr 23, 2018

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0=beta.27
  • react-native v0.54.2

Expected behaviour

Able to refresh backbutton/leftButton

Actual behaviour

Refresh does nothing, unless I pass in null

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

  1. Load scene
  2. On button press try Actions.resresh({renderBackButton: ()=>{return })
  3. Still old back button
@schlaegerz schlaegerz changed the title Can't refresh Can't refresh renderBackButton Apr 23, 2018
@rongmax-gufei
Copy link

PageA
componentWillReceiveProps () {
this.onRefresh()
}

PageB
Actions.pop({refresh: {}});

@aksonov
Copy link
Owner

aksonov commented Jun 6, 2018

Sorry, it is not supported. Instead define your logic inside renderBackButton function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants