From 9de1f2e217b6cc5c612ebed0a89257cf9f941f01 Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Wed, 3 Jun 2026 17:13:09 +0200 Subject: [PATCH] docs: bump compatibility table --- docs/errors.md | 2 +- docs/install.mdx | 6 ++++-- docs/migrating.md | 8 ++++---- docs/one-tap.mdx | 6 +----- src/pages/examples.md | 6 ++---- 5 files changed, 12 insertions(+), 16 deletions(-) diff --git a/docs/errors.md b/docs/errors.md index a4e93ab..da137b2 100644 --- a/docs/errors.md +++ b/docs/errors.md @@ -1,6 +1,6 @@ --- sidebar_position: 60 -description: 'Error handling guide. Covers `isErrorWithCode` helper, error codes (`SIGN_IN_CANCELLED`, `NO_SAVED_CREDENTIAL_FOUND`, `PLAY_SERVICES_NOT_AVAILABLE`, etc.), and best practices.' +description: 'Error handling guide. Covers `isErrorWithCode` helper, error codes (`SIGN_IN_CANCELLED`, `PLAY_SERVICES_NOT_AVAILABLE`, etc.), and best practices.' --- # Error handling diff --git a/docs/install.mdx b/docs/install.mdx index 17e26a5..c78ff9d 100644 --- a/docs/install.mdx +++ b/docs/install.mdx @@ -5,6 +5,8 @@ description: 'Install `@react-native-google-signin/google-signin`. Covers paid ( # Installation +> We recommend [Expo](https://expo.dev) and [EAS](https://expo.dev/eas) for building and deploying your React Native app. Expo offers the best developer experience and is well-supported by this library. + The recommended option is [Universal Sign In](https://universal-sign-in.com) (paid). A free legacy version is also available — see [below](#public-version-free) for the differences. If you are an EAS customer, you may be able to access the paid version for free, [learn more](https://forms.gle/tpP7TfUGW1CwgaEZ8). Why paid? According to the [State of React Native Survey](https://results.2024.stateofreactnative.com/en-US/opinions/#opinions_pain_points_multiple), unmaintained packages are **the #1 pain point** of the React Native ecosystem. Your purchase enables the module to be rock-solid, and contributions to upstream SDKs such as [1](https://github.com/openid/AppAuth-iOS/pull/788), [2](https://github.com/google/GoogleSignIn-iOS/pull/402), [3](https://github.com/googlesamples/google-services/issues/426), [4](https://github.com/google/GoogleSignIn-iOS/issues/457), [5](https://issuetracker.google.com/issues/424210681), [6](https://issuetracker.google.com/issues/474817166). @@ -162,5 +164,5 @@ The latest version of the Universal Sign In package supports (use older versions | | supported range | | ------------ | --------------- | -| expo | 52.0.40 - 55 | -| react-native | 0.76.0 - 0.85 | +| expo | 52.0.40 - 56 | +| react-native | 0.76.0 - 0.86 | diff --git a/docs/migrating.md b/docs/migrating.md index 2021ca7..5615b93 100644 --- a/docs/migrating.md +++ b/docs/migrating.md @@ -62,10 +62,10 @@ const signIn = async () => { - case statusCodes.SIGN_IN_CANCELLED: - // sign in was cancelled - break; - case statusCodes.ONE_TAP_START_FAILED: - // Android-only, you probably have hit rate limiting. - // On Android, you can still call `presentExplicitSignIn` in this case. - break; +- case statusCodes.ONE_TAP_START_FAILED: +- // Android-only, you probably have hit rate limiting. +- // On Android, you can still call `presentExplicitSignIn` in this case. +- break; case statusCodes.PLAY_SERVICES_NOT_AVAILABLE: // Android-only: play services not available or outdated // Web: when calling an unimplemented api (requestAuthorization) diff --git a/docs/one-tap.mdx b/docs/one-tap.mdx index 188537e..fc964bd 100644 --- a/docs/one-tap.mdx +++ b/docs/one-tap.mdx @@ -31,7 +31,7 @@ import { ; -const startSignInFlow = async () => { +export const startSignInFlow = async () => { try { GoogleOneTapSignIn.configure(); // move this to after your app starts await GoogleOneTapSignIn.checkPlayServices(); @@ -129,10 +129,6 @@ const signIn = async () => { console.error(error); if (isErrorWithCode(error)) { switch (error.code) { - case statusCodes.ONE_TAP_START_FAILED: - // Android-only, you probably have hit rate limiting. - // You can still call `presentExplicitSignIn` in this case. - break; case statusCodes.PLAY_SERVICES_NOT_AVAILABLE: // Android: play services not available or outdated. // Get more details from `error.userInfo`. diff --git a/src/pages/examples.md b/src/pages/examples.md index f47f872..f30d661 100644 --- a/src/pages/examples.md +++ b/src/pages/examples.md @@ -1,11 +1,9 @@ # Examples -The Web example is [here](https://github.com/react-native-google-signin/google-signin-next/tree/main/web-example). - -The native example (iOS, Android, macOS) is [here](https://github.com/react-native-google-signin/google-signin-next/tree/main/example). +The example app — covering iOS, Android, and web in a single Expo app — is [here](https://github.com/react-native-google-signin/google-signin-next/tree/main/example). :::note -The above links are accessible only with the paid version. There is an old example [here](https://github.com/react-native-google-signin/google-signin/tree/master/example). +The above link is accessible only with the paid version. There is an old example [here](https://github.com/react-native-google-signin/google-signin/tree/master/example). ::: Documentation sources repo is located [here](https://github.com/react-native-google-signin/docs).