0
import firebase from 'firebase/app';
import auth from './firebaseConfig'
import RecaptchaVerifier from 'firebase/auth'

   

// Sent OTP
    const signin = () => {
        if (mynumber === "" || mynumber.length < 10) return;
           window.RecaptchaVerifier  = new RecaptchaVerifier(auth,'recaptcha-container',{});
                const appVerifier = window.RecaptchaVerifier
            signInWithPhoneNumber(auth, mynumber, appVerifier).then((result) => {
              
                });
    }

The code is failing with below exception

TypeError: Cannot read property 'prototype' of undefined, js engine: hermes at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in reportException at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in handleException ... 7 more stack frames from framework internals

Any help will be appreciatedl̥

vimuth
  • 5,064
  • 33
  • 79
  • 116
Lakshay
  • 1
  • 1

0 Answers0