Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample Route
const sampleRoute = {
renderNavBarLeft: () => (<NavBarBackButton />),
renderNavBarTitle: () => (<SimplePageTitle />),
renderNavBarRight: () => null,
renderScene: () => (<SamplePage />),
};
// navigator
<Navigator
{ ...otherPropsPassingToNavigator }
renderScene={route => route.renderScene()}
navigationBar={
<Navigator.NavigationBar
routeMapper={{
LeftButton: route => route.renderNavBarLeft(),
RightButton: route => route.renderNavBarTitle(),
Title: route => route.renderNavBarTitle(),
}}
/>
}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.