mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[admob] Support 11.0 VideoController methods
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { View, requireNativeComponent } from 'react-native';
|
||||
import { ViewPropTypes, requireNativeComponent } from 'react-native';
|
||||
import PropTypes from 'prop-types';
|
||||
import { statics } from './';
|
||||
import { nativeToJSError } from '../../utils';
|
||||
@@ -10,7 +10,7 @@ import VideoOptions from './VideoOptions';
|
||||
class AdMobComponent extends React.Component {
|
||||
|
||||
static propTypes = {
|
||||
...View.propTypes,
|
||||
...ViewPropTypes,
|
||||
|
||||
// TODO ehesp: cant init this outside of the component; statics isn't defined
|
||||
...(() => {
|
||||
@@ -60,6 +60,7 @@ class AdMobComponent extends React.Component {
|
||||
* @param nativeEvent
|
||||
*/
|
||||
onBannerEvent = ({ nativeEvent }) => {
|
||||
console.log('EVENT', nativeEvent)
|
||||
if (this.props[nativeEvent.type]) {
|
||||
if (nativeEvent.type === 'onAdFailedToLoad') {
|
||||
const { code, message } = nativeEvent.payload;
|
||||
|
||||
Reference in New Issue
Block a user