Put busyindicator outside navigator

This commit is contained in:
Jake Howard 2016-03-11 20:53:33 +00:00
parent 6daa4493e2
commit df83d61f7a

View file

@ -36,7 +36,6 @@ export default class extends React.Component {
nav={nav}
currentRoute={route}
{...props} />
<BusyIndicator />
</View>
);
}
@ -47,21 +46,24 @@ export default class extends React.Component {
render() {
return (
<Navigator
renderScene={this.renderScene}
initialRoute={this.initialRoute}
navigationBar={
<Navigator.NavigationBar
style={styles.navbar}
routeMapper={RouteMapper} />
}
configureScene={(route) => {
if (route.sceneConfig) {
return route.sceneConfig;
<View style={{ flex: 1 }}>
<Navigator
renderScene={this.renderScene}
initialRoute={this.initialRoute}
navigationBar={
<Navigator.NavigationBar
style={styles.navbar}
routeMapper={RouteMapper} />
}
return Navigator.SceneConfigs.PushFromRight;
}}
/>
configureScene={(route) => {
if (route.sceneConfig) {
return route.sceneConfig;
}
return Navigator.SceneConfigs.PushFromRight;
}}
/>
<BusyIndicator />
</View>
);
}
};