Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @flow
'use strict';
import { NativeModulesProxy, EventEmitter } from 'expo-core';
import { Platform } from 'react-native';
const AdMobRewardedVideoAdManager: Object = NativeModulesProxy.ExpoAdsAdMobRewardedVideoAdManager;
const adMobRewardedEventEmitter = new EventEmitter(AdMobRewardedVideoAdManager);
const eventNames = [
'rewardedVideoDidRewardUser',
'rewardedVideoDidLoad',
'rewardedVideoDidFailToLoad',
'rewardedVideoDidOpen',
'rewardedVideoDidStart',
'rewardedVideoDidClose',
'rewardedVideoWillLeaveApplication',
];
type EventNameType =
| 'rewardedVideoDidRewardUser'
| 'rewardedVideoDidLoad'