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';
import type { EmitterSubscription } from 'react-native';
const AdMobInterstitialManager: Object = NativeModulesProxy.ExpoAdsAdMobInterstitialManager;
const adMobInterstitialEmitter = new EventEmitter(AdMobInterstitialManager);
const eventNames = [
'interstitialDidLoad',
'interstitialDidFailToLoad',
'interstitialDidOpen',
'interstitialDidClose',
'interstitialWillLeaveApplication',
];
type EventNameType =
| 'interstitialDidLoad'
| 'interstitialDidFailToLoad'
| 'interstitialDidOpen'
| 'interstitialDidClose'