New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expo web: RN GoogleSignin native module is not correctly linked #1274
Comments
I'm experiencing this exact same issue with the same dependencies. Did you figure this out OP? Like here in this guide: https://react-native-google-signin.github.io/docs/one-tap#web-support
What is "this"? Web? Is that why it's crashing? I'm all for seizing your opportunity for income, but pretty irritated if this is causing my web app to crash. |
This blog helped: https://hackernoon.com/google-sign-in-and-expo-go-a-guide-to-help-you-fix-any-issues-that-arise @vonovak, if you need proper sponsorship, I might be able to help. This is an important library that should be supported by a corporate partner. Will be sad if you have to gate critical features for it |
I figured this out! This was not very clear to me upfront. Web is incompatible with (at least the free version of) How to fix:
Example, please note that this works for me because of my specific setup where I can assume that google signin will always be an option in web.
Example:
|
Hello and thanks for asking, The free package was made to work on Android and iOS. The package was always native-first and web support was never considered. This is, to my knowledge, the first issue that reports this problem in this way. I agree that a hard-crash is not the right behavior and I will implement a change that will log a warning, but won't crash. However, I'm vacationing now and I'll get to it at the end of May. @sudowoodo200 I'll be very happy if you can find a partner that would be willing to support the maintenance. You can reach out to me to discuss this using the contact information listed in my profile. Thank you 🙂 |
Hello,
Thanks for this awesome library! I have installed it and it works great for Android and iOS!
Now I'm trying to compile my Expo router web app but i'm getting the error:
RN GoogleSignin native module is not correctly linked.
I have added the following code:
layout.tsx:
GoogleSignin.configure({ offlineAccess: false, iosClientId: 'XXXX-XXXX.apps.googleusercontent.com', webClientId: 'XXXX-XXXX.apps.googleusercontent.com', });
app.json:
"ios": { ..., "infoPlist": { "CFBundleURLTypes": [ { "CFBundleURLSchemes": [ "com.googleusercontent.apps......" ] } ] } },
I also tried to add the following code in the "+html.tsx" file:
<script src="https://accounts.google.com/gsi/client" async></script>
Expected Behavior
I want to get my web app compiled, whether with or without the google sign in feature. Of course I would prefer to have this feature on my web app too, but it's not required.
I know that the documentation mentions "Web support is only available to sponsors️.", but I don't get if the error i'm getting is due to i'm not a sponsor yet or if I've overlooked something in the setup. I mean, should I become a sponsor to successfully compile my app, or is there a workaround to resolve this issue, even if it means opting out of the web feature?"
Actual Behavior
Web throws error
RN GoogleSignin native module is not correctly linked.
Environment
The text was updated successfully, but these errors were encountered: