Skip to content

RightCorner doesn't work in firstRoute #170

Description

@ggarnier

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}}
      />
    )
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions