Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chocolateplatform-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chocolateplatform-plugin-react - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

21

ChocolateReact.js

@@ -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,

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc