Skip to content

RightCorner doesn't work in firstRoute #170

Open
@ggarnier

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

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