[auth] don't send timeout to native if ios - only on android

This commit is contained in:
Salakar 2017-10-02 09:46:34 +01:00
parent c9b49d4b7a
commit 904468271d
1 changed files with 14 additions and 5 deletions

View File

@ -66,11 +66,20 @@ export default class PhoneAuthListener {
this._subscribeToEvents();
// start verification flow natively
this._auth._native.verifyPhoneNumber(
phoneNumber,
this._phoneAuthRequestKey,
this._timeout,
);
if (isAndroid) {
this._auth._native.verifyPhoneNumber(
phoneNumber,
this._phoneAuthRequestKey,
this._timeout,
);
}
if (isIOS) {
this._auth._native.verifyPhoneNumber(
phoneNumber,
this._phoneAuthRequestKey,
);
}
}
/**