UNPKG

react-native-mobile-sms

Version:

`react-native-mobile-sms` is a React Native package designed to facilitate direct SMS sending on Android devices. This package uses the native `MobileSms` module, allowing you to send messages without user interaction with the default messaging app—perfec

13 lines (9 loc) 409 B
// src/MobileSms.ts import type { TurboModule } from "react-native"; import { TurboModuleRegistry } from "react-native"; // TypeScript interface — no `+` allowed like in Flow export interface Spec extends TurboModule { sendSms(phoneNumber: string, message: string): void; } // This will be used by Codegen to generate native bindings export default TurboModuleRegistry.getEnforcing<Spec>("MobileSms");