react-native 使用 "avoscloud-sdk": "^1.0.0-rc7"
User.logIn(this.state.username, this.state.password).then((currentUser)=>{
Alert.alert('Success',
'Welcome back',
[
{text: 'OK'},
]
)
// that.props.navigator.popToTop();
}).catch(function(error) {
Alert.alert('Error',
error.message,
[
{text: 'OK'},
]
)
});
之后报错 Get current user failed. It seems this runtime use an async storage system, please new AV.File in the callback of AV.User.currentAsync().
实际是已经登陆了。
-
创建时间
16年3月21日
-
最后回复
18年2月18日
-
2
回复
-
1.6K
浏览
-
3
用户