UNPKG

react-native-sms-consent-api

Version:

A lightweight React Native module for Android's SMS User Consent API. Easily retrieve verification codes from SMS without full SMS permissions.

10 lines (9 loc) 414 B
import { NativeEventEmitter } from 'react-native'; export declare const SmsConsentEmitter: NativeEventEmitter; export declare const Events: { SMS_CONSENT_RECEIVED: string; SMS_CONSENT_ERROR: string; }; export declare function startSmsConsentWatcher(): Promise<void>; export declare function stopSmsConsentWatcher(): Promise<void>; export declare function useSmsConsent(autoStart?: boolean): string | null;