【发布时间】:2020-05-05 16:31:00
【问题描述】:
我尝试按以下顺序返回以下 3 个元素,但它对我不起作用: 我想返回 AzureLoginView 和视图,而且只有我想要返回 PlacesNavigator 和模态
render() {
if (!this.state.loginSuccess) {
return (
<AzureLoginView
azureInstance={this.azureInstance}
loadingMessage={<Text style={{ fontSize: 20, fontWeight: "bold" }}>waiting...</Text>}
onSuccess={this._onLoginSuccess}
/>
)
return(
<View style={styles.container}>
<Text style={{
fontSize: 20,
fontWeight: 'bold',
textAlign: 'center'
}}> conect to-{"\n"}{givenName + " " + surname}</Text>
</View>
);
}
const { userPrincipalName, givenName, surname } = this.state.azureLoginObject;
return (
<PlacesNavigator /> ,
<Modal />
);
}
【问题讨论】:
标签: javascript react-native components expo element