react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.12k stars 877 forks source link

How to import isErrorWithCode #1248

Closed sarisssa closed 4 months ago

sarisssa commented 4 months ago

This is not a technical/config issue but more of a documentation one.

Please can someone offer guidance on how to import the isErrorWithCode API?

I get an error when I try to import isErrorWithCode from "@react-native-google-signin/google-signin" stating it has no exported member.

The example within the docs does not seem to have any example: https://react-native-google-signin.github.io/docs/errors

vonovak commented 4 months ago

Hello and thanks for asking, this function is only available in the sponsor-only version of the package. The documentation site covers the sponsor-only version of the package which has an improved api.

So for your case, please use the docs in the readme, as explained here

I'm going to make this clearer in the docs. Thank you 🙂

vonovak commented 4 months ago

I updated the docs to make this clearer, so I'm closing.

Thank you!