Use something like this instead: https://www.npmjs.com/package/react-native-phone-hint
React native wrapper for HintRequest api on android
npm install react-native-hint-request-picker
yarn add react-native-hint-request-picker
import { getPhoneNumber } from "react-native-hint-request-picker";
// ...
const result = await getPhoneNumber();
import { getGoogleAccount } from "react-native-hint-request-picker";
// ...
const result = await getGoogleAccount();
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT