Proxy package by MSG91
npm install @msg91comm/react-native-36blocks-proxyreact-native-proxy
Prerequisite:
1. If you're using RN >= 0.73, you're good to go.
2. Project in GCP Console
3. NON FIREBASE PROJECT
FOR ANDROID ONLY
step 1: Install dependencies
npm install react-native-proxy
npm install @react-native-async-storage/async-storage
npm install @react-native-google-signin/google-signin
step 2: Code (Show google login/signin button)
import {ShowProxyAuth} from 'react-native-proxy'
onLoginSuccess={handleLoginSuccess}
onLoginFailure={handleLoginFailure}
/>
Step 3: Google Cloud Console Configuation
Configure SHA1 key for debug
1. From your project root, cd android && ./gradlew signingReport.
2. Scroll to the top of output, see the fingerprints. Debug fingerprint is used for debug apk, release fingerprint is used for release APK.
3. Select "When not using Firebase" tab Add SHA1 Key on google cloud console ( https://react-native-google-signin.github.io/docs/setting-up/get-config-file?firebase-or-not=cloud-console#step-2 )
Important:
1. Map correct SHA1 to GCP consile
2. Map correct package name to GCP console
FOR IOS ONLY
To use this on iOS, you must manually configure the following:
1. for Sign-In with Apple
Ensure you have the following setup on proxy dashboard under apple authentication feature:
- App ID
- Client ID
- Key ID
- .p8 private key file from Apple Developer → Keys section
These are required for handling Google Sign-In via Apple.
2. Sign-In via Google
- Configure URL Scheme
- Open your Info.plist and add:
Replace YOUR_CLIENT_ID with the one from your GCP console (without .apps.googleusercontent.com suffix).
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
---
Made with create-react-native-library