Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Ability to openRoute from component containing Router #11

Open
jonmorehouse opened this issue Apr 20, 2015 · 0 comments · May be fixed by #12
Open

Ability to openRoute from component containing Router #11

jonmorehouse opened this issue Apr 20, 2015 · 0 comments · May be fixed by #12

Comments

@jonmorehouse
Copy link

Hello, I'm building a component which wraps react-router.

This component looks something like this

  actionHandler: function(action) {
   // open a new route here
  // unable to call this.toRoute, this.refs.router.toRoute
  },

  render: function() {
    return (
        <Router 
          ref="router"
          firstRoute={this.state.route}
          customAction={this.actionHandler}
        />
    );
  },

Any ideas how I could expose the toRoute from the wrapper container?

jonmorehouse added a commit to jonmorehouse/react-native-router that referenced this issue Apr 20, 2015
@jonmorehouse jonmorehouse linked a pull request Apr 20, 2015 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant