
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-mobile-sms
Advanced tools
`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
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—perfect for emergency alerts or automated messaging systems.
Get started quickly by installing the package with npm or yarn:
npm install react-native-mobile-sms
or
yarn add react-native-mobile-sms
Ensure you have the necessary permissions in your Android AndroidManifest.xml:
<uses-permission android:name="android.permission.SEND_SMS"/>
Import react-native-mobile-sms in your React Native component and call the sendDirectSms method with the recipient's mobile number and your message.
import React from 'react';
import { Button, View } from 'react-native';
import mobileSms from 'react-native-mobile-sms';
const App = () => {
const sendEmergencySms = () => {
const mobileNumber = '1234567890';
const message = `I had an accident, please come to this location: https://maps.google.com/?q=12.821888+12.86541`;
mobileSms.sendDirectSms(mobileNumber, message)
.then((response) => {
console.log("Check you success Messages :",response);
})
.catch((error) => {
console.log("Check you Error Message :",error);
})
};
return (
<View>
<Button title="Send Emergency SMS" onPress={sendEmergencySms} />
</View>
);
};
export default App;
sendDirectSms(mobileNumber: string, message: string)import React from 'react';
import { Button, View } from 'react-native';
import mobileSms from 'react-native-mobile-sms';
const App = () => {
const sendEmergencySms = () => {
const mobileNumber = '1234567890';
const message = `I had an accident, please come to this location: https://maps.google.com/?q=12.821888+12.86541`;
mobileSms.sendDirectSms(mobileNumber, message)
.then((response) => {
console.log("Check you success Messages :",response);
})
.catch((error) => {
console.log("Check you Error Message :",error);
})
};
return (
<View>
<Button title="Send Emergency SMS" onPress={sendEmergencySms} />
</View>
);
};
export default App;
We have some exciting features planned for future updates:
This project is licensed under the MIT License.
We welcome contributions! Please open an issue or submit a pull request for any changes or improvements.
Encounter any issues or have questions? Open an issue on the GitHub repository.
Make your React Native app more interactive and responsive with react-native-mobile-sms. Install it today and experience seamless SMS integration.
FAQs
`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
We found that react-native-mobile-sms demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.