Skip to content
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

Promise is not returning anything #400

Open
safeer-ahmed opened this issue Jul 21, 2020 · 0 comments
Open

Promise is not returning anything #400

safeer-ahmed opened this issue Jul 21, 2020 · 0 comments

Comments

@safeer-ahmed
Copy link

Tried installing by following instructions and tested linking package manually and automatically but Promise is not getting back in my app code:

RNGoogleSafetyNet.isPlayServicesAvailable()
        .then((res) = > {
                console.warn('isPlayServicesAvailable: ' + res);
        })
        .catch((error) = > { 
               console.warn('Error: ' + error);
        })

Neither getting anything in my logs. However, If I add a log in definition of isPlayServicesAvailable then it prints it here, but not stepping ahead anymore. In below snippet Test flow gets printed in logs but then app stops here without throwing any error or exception.

/**
 * Checks if Google Play Services is available and up to date
 * @method isPlayServicesAvailable
 * @return {Promise}
 */
function isPlayServicesAvailable() {
  console.warn('Test flow')
  return RNGoogleSafetyNet.isPlayServicesAvailable();
}

Also, I am getting ... on import line like this:
Screenshot 2020-07-21 at 9 24 40 AM

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

1 participant