Fix UIExplorer Header

Summary: The UIExplorer header was broken somehow

Reviewed By: vjeux

Differential Revision: D2995823

fb-gh-sync-id: 17f283e8d95c53bcf6dca210896074a3fb2c6cd9
shipit-source-id: 17f283e8d95c53bcf6dca210896074a3fb2c6cd9
This commit is contained in:
Eric Vicenti 2016-03-01 19:36:18 -08:00 committed by Facebook Github Bot 6
parent caac520952
commit 25f78020e1
1 changed files with 4 additions and 2 deletions

View File

@ -84,10 +84,12 @@ class UIExplorerApp extends React.Component {
_renderNavigation: Function;
_renderOverlay: Function;
_renderScene: Function;
_renderCard: Function;
componentWillMount() {
this._renderNavigation = this._renderNavigation.bind(this);
this._renderOverlay = this._renderOverlay.bind(this);
this._renderScene = this._renderScene.bind(this);
this._renderCard = this._renderCard.bind(this);
}
render() {
return (
@ -120,7 +122,7 @@ class UIExplorerApp extends React.Component {
navigationState={stack}
style={styles.container}
renderOverlay={this._renderOverlay}
renderScene={this._renderScene}
renderScene={this._renderCard}
/>
);
}
@ -135,7 +137,7 @@ class UIExplorerApp extends React.Component {
);
}
_renderOverlay(props: NavigationStateRendererProps): ReactElement {
_renderCard(props: NavigationStateRendererProps): ReactElement {
return (
<NavigationCard
index={props.index}