-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
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
Labels
No labels