Skip to content

Commit f815f3d

Browse files
committed
constant mapper
1 parent d9b945d commit f815f3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

App/Navigation/NavigationBar.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ var Container = React.createClass({
4141
}
4242
});
4343

44+
const routeMapper = new NavigationBarRouteMapper();
45+
4446
var NavigationBar = {
4547
getInitialState: function() {
4648
return {};
@@ -120,7 +122,7 @@ var NavigationBar = {
120122

121123
return (
122124
<Navigator.NavigationBar
123-
routeMapper={new NavigationBarRouteMapper()}
125+
routeMapper={routeMapper}
124126
style={styles.navBar}
125127
/>
126128
);
@@ -131,7 +133,6 @@ var NavigationBar = {
131133
<View style={styles.appContainer}>
132134
<Navigator
133135
ref="navigator"
134-
debugOverlay={false}
135136
renderScene={this.renderScene}
136137
navBarHidden={this.props.navBarHidden}
137138
initialRouteStack={this.props.routeStack.path}

0 commit comments

Comments
 (0)