rn-sms-otp-autofill
Version:
React Native SMS OTP autofill for Android - TurboModule implementation for automatic SMS OTP code detection and filling
17 lines (14 loc) • 448 B
text/typescript
import type { TurboModule } from 'react-native';
import { TurboModuleRegistry } from 'react-native';
export interface Spec extends TurboModule {
/**
* Requests the native module to attempt OTP autofill
*/
requestOtpAutofill(): void;
/**
* Stops the SMS listener and cleans up resources
*/
stopOtpAutofill(): void;
}
const NativeModule = TurboModuleRegistry.getEnforcing<Spec>('RnSmsOtpAutofill');
export default NativeModule;