Created
June 30, 2017 10:17
-
-
Save david90/75ebf877aa7261cecf97cbfcc8a860d3 to your computer and use it in GitHub Desktop.
Sample Route
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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