Closed xXDeathAbyssXx closed 2 months ago
Any update on this?
no one answers
I have been dealing with this issue for a while, to unblock myself I installed an earlier version of the package:
npm install @react-native-google-signin/google-signin@11.0.1
This is the latest version that worked for me.
Hope this helps (at least for now)
but it gives Error: RN GoogleSignin native module is not correctly linked. Please read the readme, setup and troubleshooting instructions carefully. If you are using Expo, make sure you are using Custom dev client, not Expo go., js engine: hermes
an error that seems to be giving other people more lately
This package is not compatible with expo go. If you are able to install it using npm install @react-native-google-signin/google-signin@11.0.1
what you can do now is npm run android
to start it on android simulator. You can also do npm run ios
depending which platform are you building your app for.
Here is what I do.
npm install @react-native-google-signin/google-signin@11.0.1
and successfully install the package. npm run android
or npm run ios
. This should build the app on android or iOS and in the terminal you should be able to see the console logs. You can run both but iOS and Android, but note that only one terminal will be logging your console (but will be logging for both android and iOS). After installing this package, you can no longer use Expo Go to debug/run you app.
I am no expert in this thing but the above got me progress relatively quickly.
This package is not compatible with expo go. If you are able to install it using
npm install @react-native-google-signin/google-signin@11.0.1
what you can do now isnpm run android
to start it on android simulator. You can also donpm run ios
depending which platform are you building your app for.Here is what I do.
npm install @react-native-google-signin/google-signin@11.0.1
and successfully install the package.- open a new terminal and
npm run android
ornpm run ios
. This should build the app on android or iOS and in the terminal you should be able to see the console logs. You can run both but iOS and Android, but note that only one terminal will be logging your console (but will be logging for both android and iOS).After installing this package, you can no longer use Expo Go to debug/run you app.
I am no expert in this thing but the above got me progress relatively quickly.
So if I wanted to make my app functional for iOS and Android, won't it work with Expo? something that is in the expo documentation?
This package is not compatible with expo go. If you are able to install it using
npm install @react-native-google-signin/google-signin@11.0.1
what you can do now isnpm run android
to start it on android simulator. You can also donpm run ios
depending which platform are you building your app for. Here is what I do.
npm install @react-native-google-signin/google-signin@11.0.1
and successfully install the package.- open a new terminal and
npm run android
ornpm run ios
. This should build the app on android or iOS and in the terminal you should be able to see the console logs. You can run both but iOS and Android, but note that only one terminal will be logging your console (but will be logging for both android and iOS).After installing this package, you can no longer use Expo Go to debug/run you app. I am no expert in this thing but the above got me progress relatively quickly.
So if I wanted to make my app functional for iOS and Android, won't it work with Expo? something that is in the expo documentation?
I am not sure if I understood your question well, but will try to respond to what I understood. Let me first set the terminology.
"Expo" and "Expo Go" are kinda two different things here.
As you can read here: https://react-native-google-signin.github.io/docs/setting-up/expo
This package contains some native code and your app will not run in the "expo go" simulator app. However, you can still use Expo to build your app (both locally or on the cloud).
When you are done developing your app, you will build a .apk file (on android) or .ipa file (on iOS) which will run on their own in their respective platform.
However, as you develop, you can no longer use Expo Go (after installing this package). To run simulation of the app, you will need to utilize npm run android
or npm run ios
. They will essentially simulate your app, but it will take somewhat longer to start the simulation as npm will build your app first.
People usually leave the authentication flow to the end because of this caveat, but there is nothing wrong to start with it either. In the former case, you need to do a lot of aftermath, in the second the pain point will be simulation of your app.
Hello and thanks for reporting, this library doesn't dictate specific version of react: see here.
Please create a Minimal, Reproducible Example that we can see the issue with. The most effective reproducible examples are created by starting a new project from scratch and adding in only the necessary pieces to reproduce the issue. Please open a new issue with that. Thank you 🙂
:wave: @xXDeathAbyssXx, sorry you're having an issue. As the issue template explains, we require that you provide a runnable example that reproduces your issue (please read the issue template). The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug. Please create a new issue with this and we'll be happy to review it! If you're hitting a hard wall, you may consider paid assistance.
Context:
This issue details challenges encountered while integrating Google Sign-in with the @react-native-google-signin/google-signin library in a React Native project targeting Android 14 (Pixel Fold emulator).
Steps to Reproduce:
Expected Behavior:
Successful installation of @react-native-google-signin/google-signin and functional Google Sign-in integration within the React Native app on the Android 14 emulator.
Actual Behavior:
Installation fails due to a version conflict between react-native and @react-native-google-signin/google-signin. Upgrading react-native might not be feasible due to potential conflicts with other dependencies.
Guidance on resolving the version conflict and successfully integrating Google Sign-in with the current setup (if possible).
Current Setup: