Google-signin: Autolinking support in RN 0.60

Created on 11 Aug 2019  路  8Comments  路  Source: react-native-google-signin/google-signin

Well, not an issue (lib works great) but a request to support autolinking in react 0.6.0.

This is the error thrown by react native:

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: 
  - react-native-google-signin (to unlink run: "react-native unlink react-native-google-signin")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.
Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md

All 8 comments

You can change to Autolinking from manual link through react-native unlink react-native-google-signin
The error would happen when you link some library manually.

And do not forget pod install for iOS.

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: 
  - react-native-google-signin (to unlink run: "react-native unlink react-native-google-signin")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.
Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md

Going forward, you can unlink this dependency via "react-native unlink " and it will be included in your app automatically.

I think that explains it. Just run the command and it should work the same.

Message disappeared after unlinking. Thank you guys!

@JeffGuKang what about android. without linking will the dependencies be linked directly in Android project

@saikiranoptisol

In android, RN >0.60 has the gradle scripts to link automatically, so we do not need to think about link :)

@JeffGuKang for me when ever i do npm start i'm getting warning as this library is deprecated. Please check the screenshot
Screenshot 2019-08-22 at 7 52 01 PM

Which googlesignin version supports auto-linking? Couldn't find in changelog.

I'm getting below error in Android after run react-native unlink react-native-google-signin. Still seeing same warning as @saikiranoptisol

'RN GoogleSignin native module is not correctly linked. Please read the readme, setup and troubleshooting instructions carefully or try manual linking.'

Which googlesignin version supports auto-linking? Couldn't find in changelog.

I'm getting below error in Android after run react-native unlink react-native-google-signin. Still seeing same warning as @saikiranoptisol

'RN GoogleSignin native module is not correctly linked. Please read the readme, setup and troubleshooting instructions carefully or try manual linking.'

I have the same issue. couldn't find the perfect solution.

Was this page helpful?
0 / 5 - 0 ratings