Skip to content

improve docs for right navbar item, including onRight #314

@kristianmandrup

Description

@kristianmandrup

Tried to render a hamburger menu item in the navbar of my initial route:

<Route name="launch" initial={true} component={ChatRoomScreen} wrapRouter={true} hideNavBar={false} title="Home" rightTitle="menu" onRight={Actions.drawer}/>

The docs for displaying the right nav button are a little unclear. With this setup, nothing is displayed, however changing to this works:

onRight={() => {Actions.drawer() }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions