Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 624 Bytes

Reward.md

File metadata and controls

33 lines (28 loc) · 624 Bytes
    import{ RewardSmaato } from 'react-native-smaato-ad';
    RewardSmaato.showAd('130626426');
    interface RewardSmaatoType {
        showAd(adid:string): void;
    }
    enum EventRewardType {
      onAdLoaded,
      onAdFailedToLoad,
      onAdError,
      onAdStarted,
      onAdClosed,
      onAdClicked,
      onAdReward,
      onAdTTLExpired,
    }
   //events
   import{ RewardSmaatoEvent,EventReward } from 'react-native-smaato-ad';

   RewardSmaatoEvent.addListener(EventReward.onAdLoaded,(event:any) => {
     console.log(event)
   })