diff --git a/index.android.js b/index.android.js index 36d429257e6a6963fe657e80df51592a3f63d913..02dd5b01a6ba44429ef372b59d0d83f7ac2b8ff7 100644 --- a/index.android.js +++ b/index.android.js @@ -1,5 +1,5 @@ -import {NativeModules, DeviceEventEmitter} from 'react-native'; -import NotificationAndroid from './notification'; +import {NativeModules, DeviceEventEmitter} from "react-native"; +import NotificationAndroid from "./notification"; const RNNotifications = NativeModules.WixRNNotifications; @@ -9,7 +9,7 @@ let registrationTokenUpdateListener; export class NotificationsAndroid { static setRegistrationTokenUpdateListener(listener) { - registrationTokenUpdateListener = DeviceEventEmitter.addListener('remoteNotificationsRegistered', listener); + registrationTokenUpdateListener = DeviceEventEmitter.addListener("remoteNotificationsRegistered", listener); } static clearRegistrationTokenUpdateListener() { @@ -20,12 +20,12 @@ export class NotificationsAndroid { } static setNotificationOpenedListener(listener) { - notificationOpenedListener = DeviceEventEmitter.addListener('notificationOpened', (notification) => listener(new NotificationAndroid(notification))); + notificationOpenedListener = DeviceEventEmitter.addListener("notificationOpened", (notification) => listener(new NotificationAndroid(notification))); } static setNotificationReceivedListener(listener) { - notificationReceivedListener = DeviceEventEmitter.addListener('notificationReceived', (notification) => listener(new NotificationAndroid(notification))); + notificationReceivedListener = DeviceEventEmitter.addListener("notificationReceived", (notification) => listener(new NotificationAndroid(notification))); } static clearNotificationOpenedListener() { diff --git a/package.json b/package.json index ec648ba9a7666c7b5e326550ce784db8335fef2c..f5b85779cd484f4dbf83d3b3249e9582675227fc 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ }, "peerDependencies": { "react-native": ">=0.25.1", - "react": "^0.14.5" + "react": ">=0.14.5" }, "devDependencies": { "babel-eslint": "^6.0.2",