
Security News
Agent Baseline Publishes Security Reference Architecture for Software Factories
Agent Baseline’s new reference architecture shows how to secure software factories with four boundaries enforced outside the AI agent.
@4j17h/react-native-phone-number-autofill
Advanced tools
Android-only phone number autofill using deprecated Google Credentials API. Shows Google account phone numbers AND SIM numbers. Even though these APIs are deprecated, they still work in play-services-auth:20.7.0 and provide better UX than the new Phone Nu
Android-only phone number autofill using Google Credentials API. Shows Google account phone numbers AND SIM numbers for better UX.
Google deprecated the old Credentials API in favor of the new Phone Number Hint API. However:
This library uses the deprecated-but-working Credentials API (like Zomato does) to provide better UX.
npm install @4j17h/react-native-phone-number-autofill
# or
yarn add @4j17h/react-native-phone-number-autofill
Add to your project's android/build.gradle:
allprojects {
configurations.all {
resolutionStrategy {
force 'com.google.android.gms:play-services-auth:20.7.0'
}
}
}
import { requestPhoneNumber } from '@4j17h/react-native-phone-number-autofill';
const handlePhoneNumberPicker = async () => {
try {
const phoneNumber = await requestPhoneNumber();
console.log('Selected:', phoneNumber); // e.g., "+919876543210"
} catch (error) {
console.log('User cancelled or no numbers available');
}
};
import React, { useState } from 'react';
import { TextInput, Platform } from 'react-native';
import { requestPhoneNumber } from '@4j17h/react-native-phone-number-autofill';
const LoginScreen = () => {
const [phone, setPhone] = useState('');
const handleFocus = async () => {
if (Platform.OS !== 'android') return;
try {
const number = await requestPhoneNumber();
setPhone(number?.slice(-10) || ''); // Last 10 digits
} catch (error) {
// User cancelled
}
};
return (
<TextInput
value={phone}
onChangeText={setPhone}
onFocus={handleFocus}
placeholder="Phone Number"
keyboardType="phone-pad"
/>
);
};
requestPhoneNumber(): Promise<string>Shows Google phone number picker (Android only).
Returns: Phone number in E.164 format (e.g., "+919876543210")
Error Codes:
ACTIVITY_NULL_ERROR - Activity not availableACTIVITY_RESULT_NOOK_ERROR - User cancelledNO_PHONE_NUMBERS_ERROR - No numbers foundSEND_INTENT_ERROR - Failed to show pickerIOS_NOT_SUPPORTED - Called on iOStextContentType="telephoneNumber" instead)com.google.android.gms:play-services-auth:20.7.0Uses deprecated Google Credentials API:
com.google.android.gms.auth.api.credentials.CredentialsClientcom.google.android.gms.auth.api.credentials.HintRequestEven though deprecated, these APIs still work in play-services-auth:20.7.0 and provide better UX than the new API.
MIT
Inspired by phone number picker in Zomato and other popular apps.
FAQs
Android-only phone number autofill using deprecated Google Credentials API. Shows Google account phone numbers AND SIM numbers. Even though these APIs are deprecated, they still work in play-services-auth:20.7.0 and provide better UX than the new Phone Nu
We found that @4j17h/react-native-phone-number-autofill demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Agent Baseline’s new reference architecture shows how to secure software factories with four boundaries enforced outside the AI agent.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.