chocolateplatform-plugin-react
Advanced tools
Comparing version 1.0.0 to 1.0.2
@@ -1,3 +0,4 @@ | ||
import {NativeModules, NativeEventEmitter} from 'react-native'; | ||
import {NativeModules, NativeEventEmitter, Platform} from 'react-native'; | ||
import type EmitterSubscription from 'EmitterSubscription'; | ||
//import {Platform} from 'react-native' | ||
@@ -49,4 +50,22 @@ const ChocolateReactBridge = NativeModules.ChocolateReactBridge; | ||
loadInterstitialAd: (apiKey: string) => ChocolateReactBridge.loadInterstitialAd(apiKey), | ||
...Platform.select({ | ||
ios: { | ||
prefetchInterstitialAd: (apiKey: string) => {} | ||
}, | ||
android: { | ||
prefetchInterstitialAd: (apiKey: string) => ChocolateReactBridge.prefetchInterstitialAd(apiKey) | ||
} | ||
}), | ||
//prefetchInterstitialAd: (apiKey: string) => ChocolateReactBridge.prefetchInterstitialAd(apiKey), | ||
showInterstitialAd: () => ChocolateReactBridge.showInterstitialAd(), | ||
loadRewardAd: (apiKey: string) => ChocolateReactBridge.loadRewardAd(apiKey), | ||
...Platform.select({ | ||
ios: { | ||
prefetchRewardAd: (apiKey: string) => {} | ||
}, | ||
android: { | ||
prefetchRewardAd: (apiKey: string) => ChocolateReactBridge.prefetchRewardAd(apiKey) | ||
} | ||
}), | ||
//prefetchRewardAd: (apiKey: string) => ChocolateReactBridge.prefetchRewardAd(apiKey), | ||
showRewardAd: ( | ||
@@ -53,0 +72,0 @@ rewardName: string, |
{ | ||
"name": "chocolateplatform-plugin-react", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "A plugin to enable chocolateplatform ads to be displayed in ReactNative apps", | ||
@@ -5,0 +5,0 @@ "main": "ChocolateReact.js", |
14354
103