pushy-react-native
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -19,2 +19,5 @@ import { Platform, AppRegistry, NativeModules, NativeEventEmitter } from 'react-native'; | ||
else { | ||
// Create event emitter | ||
const pushyEventEmitter = new NativeEventEmitter(Pushy); | ||
// Expose custom notification listener | ||
@@ -24,5 +27,2 @@ Pushy.setNotificationListener = (handler) => { | ||
if (Platform.OS === 'ios') { | ||
// Create event emitter | ||
const pushyEventEmitter = new NativeEventEmitter(Pushy); | ||
// Subscribe to new notification events | ||
@@ -40,2 +40,8 @@ pushyEventEmitter.addListener('Notification', handler); | ||
}; | ||
// Expose custom notification click listener | ||
Pushy.setNotificationClickListener = (handler) => { | ||
// Subscribe to new notification events | ||
pushyEventEmitter.addListener('NotificationClick', handler); | ||
}; | ||
} | ||
@@ -42,0 +48,0 @@ |
{ | ||
"name": "pushy-react-native", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "The official Pushy SDK for React Native apps.", | ||
@@ -5,0 +5,0 @@ "main": "lib/Pushy.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
213727
41