Introduction

suggest change

Instead of bloating the main JavaScript file that contains your navigator with buttons, inject buttons on demand in any page that needs them.

//In the page "Home", I want to have the right nav button to show
//a settings modal that resides in "Home" component.

componentWillMount() {
  this.props.route.navbarTitle = "Home";

  this.props.route.rightNavButton = {
    text: "Settings",
    onPress: this._ShowSettingsModal.bind(this)
  };
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents