react-native-google-signin/google-signin

How to import isErrorWithCode

sarisssa opened this issue ยท 2 comments

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

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 ๐Ÿ™‚

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

Thank you!