New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-sms-retriever

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-sms-retriever - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

index.js

@@ -1,2 +0,2 @@

import { DeviceEventEmitter, NativeModules } from 'react-native';
import { DeviceEventEmitter, NativeModules, Platform } from 'react-native';

@@ -6,3 +6,3 @@ const { RNSmsRetrieverModule } = NativeModules;

const SmsRetrieverModule = {
const SmsRetrieverModule = (Platform.OS === "ios") ? null : {
requestPhoneNumber: RNSmsRetrieverModule.requestPhoneNumber,

@@ -9,0 +9,0 @@ startSmsRetriever: RNSmsRetrieverModule.startSmsRetriever,

{
"name": "react-native-sms-retriever",
"version": "1.0.1",
"version": "1.0.2",
"description": "Android SMS Retriever API for React Native",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/Bruno-Furtado/react-native-sms-retriever",

@@ -13,3 +13,3 @@ [![Platform][platform-badge]][platform-url]

<h1></h1>
<hr/>

@@ -68,18 +68,9 @@ <br/>

#### `requestPhoneNumber(): Promise<String>`
| Method | Return | Description |
| :------------------------------ | :----------------- | :------------------------------------------------------ |
| requestPhoneNumber() | `Promise<String>` | Obtain the user's phone number (using the hint picket). |
| startSmsRetriever() | `Promise<Boolean>` | Start to listen for SMS messages. |
| addSmsListener(event: Function) | `Promise<Boolean>` | Get the SMS content with: `event.message`. |
| removeSmsListener() | `Void` | Stop to listen for SMS messages. |
Obtain the user's phone number (using the hint picket).
#### `startSmsRetriever(): Promise<Boolean>`
Start to listen for SMS messages.
#### `addSmsListener(event: Function): Promise<Boolean>`
Get the SMS content. Get the SMS content with: `event.message`.
#### `removeSmsListener(): Void`
Stop to listen for SMS messages.
> Check the erros of each method on [Erros Wiki Page](https://github.com/Bruno-Furtado/react-native-sms-retriever/wiki/Errors).

@@ -100,3 +91,3 @@

[platform-url]: https://developer.android.com/
[license-badge]: https://img.shields.io/badge/license-MIT-orange.svg?style=flat
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: https://github.com/Bruno-Furtado/react-native-sms-retriever/blob/master/LICENSE

@@ -109,1 +100,5 @@ [npm-badge]: https://badge.fury.io/js/react-native-sms-retriever.svg

[gitter-url]: https://gitter.im/react-native-sms-retriever/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
<hr/>
Made with ❤ in Curitiba 🇧🇷
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc