Skip to content

Custom NavBar has no ability to pass props #351

@naji247

Description

@naji247

Hey guys, I really like your work on this repo.

I'm trying to pass a titleview as my navbar into my router.

const scenes = Actions.create(
    <Scene key="root" navBar={TitleView}>
      <Scene key="RankScreen" initial={true} component={RankScreen} title="DogShow"/>
      <Scene key="LeaderScreen" hideNavBar={true} component={LeaderScreen} title="LeaderScreen"/>
    </Scene>
);

But what I need is to pass props in.

const scenes = Actions.create(
    <Scene key="root" navBar={<TitleView title="eifj"></TitleView>}>
      <Scene key="RankScreen" initial={true} component={RankScreen} title="DogShow"/>
      <Scene key="LeaderScreen" hideNavBar={true} component={LeaderScreen} title="LeaderScreen"/>
    </Scene>
);

Do you have any recommendations? Also, what is the specific purpose of the root scene? Is it necessary?

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