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

RightCorner doesn't work in firstRoute #170

Open
ggarnier opened this issue Feb 15, 2017 · 0 comments
Open

RightCorner doesn't work in firstRoute #170

ggarnier opened this issue Feb 15, 2017 · 0 comments

Comments

@ggarnier
Copy link

Hello. I'm trying to add a component in the right corner, but it doesn't appear in the first route, only in the other routes. Here's a sample of my code:

class App extends Component {
  const firstRoute = {
    name: "My app",
    component: MainPage
  }

  render() {
    return (
      <Router
        firstRoute={firstRoute}
        rightCorner={Button}
      />
    )
  }
}

class Button extends Component {
  render() {
    return (
      <Image
        source={require('./images/button.png')}
        style={{width: 30, height: 30}}
      />
    )
  }
}
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

1 participant