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)
})