ark-react-native-local-notifications
Version:
Manageable local notifications for React Native on iOS and Android.
20 lines (14 loc) • 560 B
JavaScript
import { NativeModules } from 'react-native'
const { ARNLocalNotifications } = NativeModules
const ArkReactNativeLocalNotifications = {
createNotification: (id, title, text, datetime) => {
ARNLocalNotifications.createNotification(id, title, text, datetime)
},
deleteNotification: (id) => {
ARNLocalNotifications.deleteNotification(id)
},
updateNotification: (id, title, text, datetime) => {
ARNLocalNotifications.updateNotification(id, title, text, datetime)
},
}
export default ArkReactNativeLocalNotifications