title: How to disable firebase phone number authentication reCapcha in react native?
body: <p>How to disable google firebase authentication ReCaptcha in the react native? I referred to so many resources I haven't found any solution.</p>
  <pre><code>import React, { useState, useRef } from &quot;react&quot;;
  import { Text, TextInput, TouchableOpacity, View } from &quot;react-native&quot;;
  import { FirebaseRecaptchaVerifierModal } from &quot;expo-firebase-recaptcha&quot;;
  import firebase from &quot;../Firebase/Firebase&quot;;
  
  export default Phone = () =&gt; {
    const [verificationId, setVerificationId] = React.useState();
    const [verificationCode, setVerificationCode] = React.useState();
    const [phoneNumber, setPhoneNumber] = useState(&quot;&quot;);
    const firebaseConfig = firebase.apps.length
      ? firebase.app().options
      : undefined;
    const recaptchaVerifier = useRef(null);
    const [code, setCode] = useState(&quot;&quot;);
    const sendVerification = () =&gt; {
    const phoneProvider = new firebase.auth.PhoneAuthProvider();
    phoneProvider
      .verifyPhoneNumber(phoneNumber, recaptchaVerifier.current)
      .then(setVerificationId)
      .catch((error) =&gt; {
        alert(error);
        return;
      });
    console.log(setVerificationId);
    };
    const confirmCode = () =&gt; {
      const credential = firebase.auth.PhoneAuthProvider.credential(
        verificationId,
        code
      );
      firebase
        .auth()
        .signInWithCredential(credential)
        .then((result) =&gt; {
          console.log(result.user);
        });
    };
    return (
      &lt;View&gt;
        &lt;View&gt;
          &lt;TextInput
            placeholder=&quot;Phone Number&quot;
            onChangeText={setPhoneNumber}
            keyboardType=&quot;phone-pad&quot;
            autoCompleteType=&quot;tel&quot;
          /&gt;
          &lt;TouchableOpacity onPress={sendVerification}&gt;
            &lt;Text&gt;Send Verification&lt;/Text&gt;
          &lt;/TouchableOpacity&gt;
          &lt;TextInput
            placeholder=&quot;Confirmation Code&quot;
            onChangeText={setCode}
            keyboardType=&quot;number-pad&quot;
          /&gt;
          &lt;TouchableOpacity onPress={confirmCode}&gt;
            &lt;Text&gt;Send Verification&lt;/Text&gt;
          &lt;/TouchableOpacity&gt;
          &lt;FirebaseRecaptchaVerifierModal
            ref={recaptchaVerifier}
            firebaseConfig={firebaseConfig}
          /&gt;
        &lt;/View&gt;
      &lt;/View&gt;
    );
  };
  </code></pre>