react-native-alarm-clock
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

react-native-alarm-clock

React Native Alarm Clock helps create native system alarms for Android & iOS

Installation

npm install react-native-alarm-clock

Usage

Simply call createAlarm with and ISO8601 date string and a label. Android does not support setting a specific day, it will get the hour & minute out of the passed date and use that. iOS does supports using a specific date.

import AlarmClock from "react-native-alarm-clock";

// ...

// Create an alarm at 1:55PM for next day, with the label 'My Custom Alarm'
let date = new Date();
date.setDate(date.getDate() + 1);
date.setHours(13, 55);

AlarmClock.createAlarm(date.toISOString(), 'My Custom Alarm');

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

/react-native-alarm-clock/

    Package Sidebar

    Install

    npm i react-native-alarm-clock

    Weekly Downloads

    11

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    948 kB

    Total Files

    137

    Last publish

    Collaborators

    • kmorales13