Commit ee8813bd authored by Lidan Hifi's avatar Lidan Hifi

fix linting issues

parent bac11ebc
import {NativeModules, DeviceEventEmitter} from 'react-native'; import {NativeModules, DeviceEventEmitter} from "react-native";
import NotificationAndroid from './notification'; import NotificationAndroid from "./notification";
const RNNotifications = NativeModules.WixRNNotifications; const RNNotifications = NativeModules.WixRNNotifications;
...@@ -9,7 +9,7 @@ let registrationTokenUpdateListener; ...@@ -9,7 +9,7 @@ let registrationTokenUpdateListener;
export class NotificationsAndroid { export class NotificationsAndroid {
static setRegistrationTokenUpdateListener(listener) { static setRegistrationTokenUpdateListener(listener) {
registrationTokenUpdateListener = DeviceEventEmitter.addListener('remoteNotificationsRegistered', listener); registrationTokenUpdateListener = DeviceEventEmitter.addListener("remoteNotificationsRegistered", listener);
} }
static clearRegistrationTokenUpdateListener() { static clearRegistrationTokenUpdateListener() {
...@@ -20,12 +20,12 @@ export class NotificationsAndroid { ...@@ -20,12 +20,12 @@ export class NotificationsAndroid {
} }
static setNotificationOpenedListener(listener) { static setNotificationOpenedListener(listener) {
notificationOpenedListener = DeviceEventEmitter.addListener('notificationOpened', (notification) => listener(new NotificationAndroid(notification))); notificationOpenedListener = DeviceEventEmitter.addListener("notificationOpened", (notification) => listener(new NotificationAndroid(notification)));
} }
static setNotificationReceivedListener(listener) { static setNotificationReceivedListener(listener) {
notificationReceivedListener = DeviceEventEmitter.addListener('notificationReceived', (notification) => listener(new NotificationAndroid(notification))); notificationReceivedListener = DeviceEventEmitter.addListener("notificationReceived", (notification) => listener(new NotificationAndroid(notification)));
} }
static clearNotificationOpenedListener() { static clearNotificationOpenedListener() {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
}, },
"peerDependencies": { "peerDependencies": {
"react-native": ">=0.25.1", "react-native": ">=0.25.1",
"react": "^0.14.5" "react": ">=0.14.5"
}, },
"devDependencies": { "devDependencies": {
"babel-eslint": "^6.0.2", "babel-eslint": "^6.0.2",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment