Skip to content

Is this codebase is active ? Can you review the code ? #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cullsin opened this issue May 23, 2019 · 1 comment
Open

Is this codebase is active ? Can you review the code ? #14

cullsin opened this issue May 23, 2019 · 1 comment

Comments

@cullsin
Copy link

cullsin commented May 23, 2019

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.

  componentDidMount() {

const initsuccess = (response) => { 
    alert(JSON.stringify(response));
}

const initfail = ( response ) => { 
    alert(JSON.stringify(response));
}

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
        );

const callBackSuccess = (response) => { 
    alert(JSON.stringify(response));
}

const callBackFailure = (response) => { 
    alert(JSON.stringify(response));
}

let phoneNumber = "+91988600000";
RNFirebasePhoneAuth.sendOTP(phoneNumber, callBackSuccess, callBackFailure);
 }

I am getting the below errror,

image

@ashinga48
Copy link
Owner

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
        );

 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants