I use React Native Google Signin (release 1.0.0) with Typescript but I have errors in Visual Studio Code whenever I use GoogleSignin :
For example, for this piece of code :
await GoogleSignin.hasPlayServices()
const userInfo: User = await GoogleSignin.signIn()
I have this message :
GoogleSignin' only refers to a type, but is being used as a value here.
I had not this problem before (I was using a previous release of React Native Google Signin and @types/react-native-google-signin for TS typings).
Anyone has the same problem ?
By the way I think there is a typo in the README examples. It should be StatusCodes and not statsuCodes.
馃憤 I have the same problem. It seems like the definition file provided by package itself is incorrect.
The correct definition file should be similar to https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-native-google-signin/index.d.ts ?
thanks for the heads up, we will remove the internal one since there is one in DefinitelyTyped.
Most helpful comment
thanks for the heads up, we will remove the internal one since there is one in DefinitelyTyped.