Loading...
Loading...
Integrates react-native-nitro-google-signin (Nitro Universal Google Sign-In) in React Native and Expo apps. Use when adding Google Sign-In, One Tap sign-in, GoogleOneTapSignIn, Credential Manager, SHA-1 OAuth setup, google-services.json, GoogleService-Info.plist, Expo config plugin, DEVELOPER_ERROR, or webClientId autoDetect.
npx skill4agent add react-native-nitro-google-sign-in/google-signin react-native-nitro-google-signinnpx skills add react-native-nitro-google-sign-in/google-signin -g -ybun add react-native-nitro-google-signin react-native-nitro-modules
bundle exec pod install --project-directory="ios"expo-dev-client| Topic | Rule |
|---|---|
| API | |
| Configure first | |
| Requires |
| Backend | Verify every |
| iOS offline grant | Silent |
| Android: by email/id. iOS: current session only (throws if id mismatch) |
| After sign-in; throws |
| Sync; returns user + |
| Flow order | |
Android | Needs |
| iOS | |
| Expo | Plugin |
| After native changes | Rebuild app — Metro alone is insufficient |
import {
GoogleOneTapSignIn,
isNoSavedCredentialFoundResponse,
isSuccessResponse,
} from 'react-native-nitro-google-signin'
GoogleOneTapSignIn.configure({ webClientId: 'autoDetect' })
await GoogleOneTapSignIn.checkPlayServices()
let response = await GoogleOneTapSignIn.signIn()
if (isNoSavedCredentialFoundResponse(response)) {
response = await GoogleOneTapSignIn.createAccount()
}
if (isNoSavedCredentialFoundResponse(response)) {
response = await GoogleOneTapSignIn.presentExplicitSignIn()
}
if (isSuccessResponse(response)) {
const { user, idToken } = response.data
}googleServicesFileapp.config.js| Symptom | Likely fix |
|---|---|
| Wrong SHA-1 or package on OAuth client |
| Missing Play App Signing / release SHA-1 on Android OAuth client — troubleshooting |
| Add |
| iOS redirect fails | Fix |
| Expo: upgrade package + |
| Nitro not found | Rebuild dev client / |
| Android button laid out but blank | Upgrade package (in-process branding button) + rebuild native app |
| Sign-in OK in debug, fails in release | Consumer ProGuard rules ship with library; avoid |