Put busyindicator outside navigator
This commit is contained in:
parent
6daa4493e2
commit
df83d61f7a
1 changed files with 17 additions and 15 deletions
|
@ -36,7 +36,6 @@ export default class extends React.Component {
|
||||||
nav={nav}
|
nav={nav}
|
||||||
currentRoute={route}
|
currentRoute={route}
|
||||||
{...props} />
|
{...props} />
|
||||||
<BusyIndicator />
|
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -47,21 +46,24 @@ export default class extends React.Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Navigator
|
<View style={{ flex: 1 }}>
|
||||||
renderScene={this.renderScene}
|
<Navigator
|
||||||
initialRoute={this.initialRoute}
|
renderScene={this.renderScene}
|
||||||
navigationBar={
|
initialRoute={this.initialRoute}
|
||||||
<Navigator.NavigationBar
|
navigationBar={
|
||||||
style={styles.navbar}
|
<Navigator.NavigationBar
|
||||||
routeMapper={RouteMapper} />
|
style={styles.navbar}
|
||||||
}
|
routeMapper={RouteMapper} />
|
||||||
configureScene={(route) => {
|
|
||||||
if (route.sceneConfig) {
|
|
||||||
return route.sceneConfig;
|
|
||||||
}
|
}
|
||||||
return Navigator.SceneConfigs.PushFromRight;
|
configureScene={(route) => {
|
||||||
}}
|
if (route.sceneConfig) {
|
||||||
/>
|
return route.sceneConfig;
|
||||||
|
}
|
||||||
|
return Navigator.SceneConfigs.PushFromRight;
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<BusyIndicator />
|
||||||
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue