@freestar/freestar-plugin-react-native
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -67,2 +67,10 @@ import { requireNativeComponent, ViewPropTypes } from 'react-native'; | ||
}, | ||
subscribeToInterstitialCallbacks2: (callback: Function) => { | ||
INTERSTITIAL_CALLBACKS.map((event) => { | ||
emitter.removeAllListeners(event); | ||
emitter.addListener(event, (body) => { | ||
callback(event, body.placement, body); | ||
}); | ||
}); | ||
}, | ||
unsubscribeFromInterstitialCallbacks: () => { | ||
@@ -85,2 +93,14 @@ INTERSTITIAL_CALLBACKS.map((event) => { | ||
}, | ||
subscribeToRewardCallbacks2: (callback: Function) => { | ||
REWARD_CALLBACKS_NONFINISHED.map((event) => { | ||
emitter.removeAllListeners(event); | ||
emitter.addListener(event, (body) => { | ||
callback(event, body.placement, body); | ||
}); | ||
}); | ||
emitter.removeAllListeners(REWARD_CALLBACK_FINISHED); | ||
emitter.addListener(REWARD_CALLBACK_FINISHED, (body) => { | ||
callback(REWARD_CALLBACK_FINISHED, body.placement, body.rewardName, body.rewardAmount) | ||
}); | ||
}, | ||
unsubscribeFromRewardCallbacks: () => { | ||
@@ -87,0 +107,0 @@ REWARD_CALLBACKS_NONFINISHED.map((event) => { |
@@ -57,3 +57,3 @@ { | ||
], | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"repository": { | ||
@@ -60,0 +60,0 @@ "type": "git", |
49962
298