0

I install firebase from react-native firebase

# Using npm
npm install --save @react-native-firebase/app

yarn add @react-native-firebase/auth

code which send OTP to the user number:

    async signUpOTP(obj) {
      console.log('signInWithPhoneNumber', obj);
      const { number, pin, confirmPin } = this.state
      let prefix = '+92' + number;
      auth().signInWithPhoneNumber(prefix)
        .then((confirmationResult) => {
          AsyncStorage.setItem('@signItem', JSON.stringify(obj));
          this.props.navigation.navigate('signupcode', { 'confirmationResult': confirmationResult, 'number': number, 'pin': pin, 'confirmPin': confirmPin })
          this.setState({ visible: false });
        }).catch((error) => {
          console.log(error, 'catch me');
          let invalidError = 'Invalid Number';
          toastMsg(invalidError)
          this.setState({ visible: false });
        });
    }

However, it shows a Re-captcha screen instead of sending OTP code

enter image description here

Is there any way to avoid this Recaptcha screen?

Qamber
  • 108
  • 8

0 Answers0