# react-native-schedule-sms

> Schedule SMS in React Native

Latest version **1.0.2** (published 2017-08-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-schedule-sms
pnpm add react-native-schedule-sms
yarn add react-native-schedule-sms
bun add react-native-schedule-sms
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-08-30 |
| First published | 2017-08-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Ajay Saini |
| Maintainers | ajaysaini |
| Keywords | react-native, schedule, sms, alarm-manager, android |

## Links

- npm: https://www.npmjs.com/package/react-native-schedule-sms
- Repository: https://github.com/ajaysaini-sgvu/react-native-schedule-sms
- Homepage: https://github.com/ajaysaini-sgvu/react-native-schedule-sms#readme
- Issues: https://github.com/ajaysaini-sgvu/react-native-schedule-sms/issues
- npm.io page: https://npm.io/package/react-native-schedule-sms

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-08-30
- 1.0.1 — 2017-08-30
- 1.0.0 — 2017-08-30

## README

# react-native-schedule-sms
[![npm](https://img.shields.io/npm/v/react-native-schedule-sms.svg?style=flat-square)](https://www.npmjs.com/package/react-native-schedule-sms)

A react native package to schedule SMS at specific dates on android platform.

### Installation

1. Install:
    - Using [npm](https://www.npmjs.com/#getting-started): `npm install react-native-schedule-sms --save`
    - Using [Yarn](https://yarnpkg.com/): `yarn add react-native-schedule-sms`

2. [Link](https://facebook.github.io/react-native/docs/linking-libraries-ios.html):
    - `react-native link react-native-schedule-sms`
    - Or if that fails, link manually using [these steps](https://github.com/cooperka/react-native-snackbar/wiki/Manual-Installation)

3. Import it in your JS:

    ```js
    import Scheduler from 'react-native-schedule-sms';
    ```

### Example

```js
/**
 * Created by Ajay on 30/8/2017.
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from "react";
import { AppRegistry, StyleSheet, Button, View } from "react-native";
import Scheduler from "react-native-schedule-sms";

export default class SchduleSMSDemo extends Component {
  constructor(props) {
    super(props);
    this._pressSendMessage = this._pressSendMessage.bind(this);
  }

  render() {
    return (
      <View style={styles.container}>
        <Button
          onPress={this._pressSendMessage}
          title="Send Message"
          color="#841584"
        />
      </View>
    );
  }

  _pressSendMessage() {
    //Date and Time format Thu Aug 31 02:00:00 2017
    Scheduler.sendMessage("mobileNumber", "message", "time");
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: "center",
    alignItems: "center",
    backgroundColor: "#F5FCFF"
  }
});

```

### Methods

| Method Name       | Arguments                                                    | Notes                                |
| -------------     | :-------------:                                              | :----------------:                   |
| sendMessage       | mobile number, text, date & time (EEE MMM dd HH:mm:ss yyyy)  | Schedule a SMS at specific dates

### License

```
Copyright 2017 Ajay Saini (TGMCians).

Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for
additional information regarding copyright ownership. The ASF licenses this
file to you under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
```

---
_Source: https://npm.io/package/react-native-schedule-sms · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
