🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

react-native-schedule-sms

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-schedule-sms

Schedule SMS in React Native

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

react-native-schedule-sms

npm

A react native package to schedule SMS at specific dates on android platform.

Installation

  • Install:

    • Using npm: npm install react-native-schedule-sms --save
    • Using Yarn: yarn add react-native-schedule-sms
  • Link:

    • react-native link react-native-schedule-sms
    • Or if that fails, link manually using these steps
  • Import it in your JS:

    import Scheduler from 'react-native-schedule-sms';
    

Example

/**
 * 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 NameArgumentsNotes
sendMessagemobile 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.

Keywords

react-native

FAQs

Package last updated on 30 Aug 2017

Did you know?

Socket

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.

Install

Related posts