Currently im using react-native-facebook-account-kit to verify phone number for my native app. In this plugin there is a method called loginWithPhone() which is generating input and verification UI. So i dont have any control over that fields where users are typing their mobile number. How can i get the mobile number after the user typed it or after verification?
Asked
Active
Viewed 774 times
2
-
Bro did you find any solution for this..?? – AFLAH ALI Oct 22 '18 at 07:47
-
@AFLAHALI no bro. – Alauddin Ahmed Oct 22 '18 at 09:28
2 Answers
1
Yes, in RNAccountKit.configure(), change responseType to 'code'

Siddharth
- 11
- 1
-
Thank you for your time, Its been too long that i was working on that project. I will let you know if it is working or not :) – Alauddin Ahmed Feb 19 '19 at 06:47
-
Not working for me how i can get mobile number that has been entered in account kit – kishan verma Apr 30 '19 at 10:20
0
This work for me!
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))
})
}
});

kishan verma
- 984
- 15
- 17