Installation
Install both this package and react-native-nitro-modules.
npm: react-native-nitro-google-signin
- Bun
- Yarn
- npm
bun add react-native-nitro-google-signin react-native-nitro-modules
yarn add react-native-nitro-google-signin react-native-nitro-modules
npm install react-native-nitro-google-signin react-native-nitro-modules
Native linking
Autolinking handles Android and iOS. After install, from your app project root:
bundle exec pod install --project-directory="ios"
Run bundle install once first if your app has a Gemfile (included in the default React Native template).
Rebuild your app (Metro alone is not enough for native modules).
Expo
Use a development build — this library does not run in Expo Go.
Follow Expo setup for the config plugin and prebuild.
After install
- Complete Google Cloud & config files.
- Configure Android and/or iOS.
- Call
GoogleOneTapSignIn.configure()before any sign-in method — see Quick Start.