Skip to content
New issue

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

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

Already on GitHub? # to your account

Back button #68

Closed
DarrylD opened this issue Jul 14, 2016 · 2 comments
Closed

Back button #68

DarrylD opened this issue Jul 14, 2016 · 2 comments

Comments

@DarrylD
Copy link

DarrylD commented Jul 14, 2016

Noticed this.props.history in the guide

var backButton = (
  <IonNavBackButton icon="ion-ios-arrow-back"
                    color=""
                    type="clear"
                    history={this.props.history}
                    customClasses="button-stage"
  />
);

What does that do? Not seeing any reference in the src.

@pors
Copy link
Owner

pors commented Jul 15, 2016

It provides the history object from here: https://github.com/reactionic/reactionic-kitchensink/blob/master/app/client/router.jsx#L97

This is needed for the back button to know what "back" means.

@pors
Copy link
Owner

pors commented Jul 15, 2016

Ah wait! That has been replaced by context now of course. Is indeed an error in the documentation. Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants