目前,我使用react-native-facebook-account-kit来验证我的本机应用程序的电话号码。在这个插件中,有一个名为loginWithPhone()的方法,用于生成输入和验证UI。所以我对用户输入手机号码字段没有任何控制。用户输入或验证后,如何获取手机号?
发布于 2019-02-16 11:48:00
是,在RNAccountKit.configure()中,将代码更改为“responseType”
发布于 2019-04-30 19:37:13
这是我的工作!
RNAccountKit.loginWithPhone()
.then((code) => {
if (!code) {
console.log('Login cancelled')
} else {
this._showMessage("Logged with phone. Token: "+JSON.stringify(code) );
RNAccountKit.getCurrentAccount()
.then((account) => {
console.log("Current account:"+ JSON.stringify(account))
})
}
});https://stackoverflow.com/questions/50019523
复制相似问题