diff --git a/RNAdMobBanner.js b/RNAdMobBanner.js index 7dc09e10d..c204be81f 100644 --- a/RNAdMobBanner.js +++ b/RNAdMobBanner.js @@ -2,12 +2,12 @@ import { arrayOf, func, string } from 'prop-types'; import React, { Component } from 'react'; import { findNodeHandle, - requireNativeComponent, UIManager, - ViewPropTypes, } from 'react-native'; import { createErrorFromErrorData } from './utils'; +const requireNativeComponent = require('react-native').requireNativeComponent; + class AdMobBanner extends Component { constructor() { super(); @@ -62,7 +62,6 @@ class AdMobBanner extends Component { AdMobBanner.simulatorId = 'SIMULATOR'; AdMobBanner.propTypes = { - ...ViewPropTypes, /** * AdMob iOS library banner size constants diff --git a/RNPublisherBanner.js b/RNPublisherBanner.js index 64aa12014..706afbe55 100644 --- a/RNPublisherBanner.js +++ b/RNPublisherBanner.js @@ -2,12 +2,12 @@ import { arrayOf, func, string } from 'prop-types'; import React, { Component } from 'react'; import { findNodeHandle, - requireNativeComponent, UIManager, - ViewPropTypes, } from 'react-native'; import { createErrorFromErrorData } from './utils'; +const requireNativeComponent = require('react-native').requireNativeComponent; + class PublisherBanner extends Component { constructor() { super(); @@ -71,7 +71,6 @@ class PublisherBanner extends Component { PublisherBanner.simulatorId = 'SIMULATOR'; PublisherBanner.propTypes = { - ...ViewPropTypes, /** * DFP iOS library banner size constants diff --git a/android/build.gradle b/android/build.gradle index 0b89985e2..08a060fa5 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,5 +22,5 @@ android { dependencies { implementation 'com.facebook.react:react-native:+' - implementation 'com.google.android.gms:play-services-ads:+' + implementation 'com.google.android.gms:play-services-ads:16.0.0' }