Open cullsin opened 5 years ago
Hey @cullsin, I am super busy with work. So couldn't maintain this repo anymore.
But I see you are not waiting for firebase to init. May be try this
const callBackSuccess = (response) => {
alert(JSON.stringify(response));
}
const callBackFailure = (response) => {
alert(JSON.stringify(response));
}
const initsuccess = (response) => {
alert(JSON.stringify(response));
let phoneNumber = "+91988600000";
RNFirebasePhoneAuth.sendOTP(phoneNumber, callBackSuccess, callBackFailure);
}
const initfail = ( response ) => {
alert(JSON.stringify(response));
}
componentDidMount() {
RNFirebasePhoneAuth.initFirebase(config.project_id,
config.client[0].client_info.mobilesdk_app_id,
config.client[0].api_key[0].current_key,
config.firebase_url,
initsuccess,
initfail
);
}
Hi,
Thanks for the app. Can you suggest me whether the code is working fine? Also, can you suggest the params that I am passing for the config are latest? I am getting an error in initialize.
I am getting the below errror,