Installation
React Native CLI
npm install react-native-shared-credentials
# or
yarn add react-native-shared-credentials
iOS
cd ios && pod install
Android
No additional steps required. The package auto-links on Android.
Expo
npx expo install react-native-shared-credentials
Add the plugin to your app.json or app.config.js:
{
"expo": {
"plugins": [
[
"react-native-shared-credentials",
{
"domains": ["example.com"],
"teamId": "YOUR_TEAM_ID"
}
]
]
}
}
Then rebuild your development build:
npx expo prebuild
npx expo run:ios
# or
npx expo run:android
Expo Go Not Supported
This package requires native code and will not work with Expo Go. You must use a development build.
Verify Installation
import SharedPasswords from 'react-native-shared-credentials';
const support = SharedPasswords.getPlatformSupport();
console.log('Password AutoFill supported:', support.passwordAutoFill);
console.log('Passkeys supported:', support.passkeys);
console.log('OS Version:', support.currentOSVersion);