Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_showAd() {
InterstitialAdManager.showAd(InterstitialAdPlacementId)
.then(() => {})
.catch(() => {});
}
}
import React, { Component } from 'react';
import { NativeAdsManager, AdSettings } from 'react-native-fbads';
import { Container } from 'native-base';
import { nativeAdPlacementId } from '../Variables/index';
import NativeAdView from './NativeAdView';
AdSettings.clearTestDevices();
AdSettings.setLogLevel('debug');
AdSettings.addTestDevice(AdSettings.currentDeviceHash);
const adsManager = new NativeAdsManager(nativeAdPlacementId);
export default class NativeAd extends Component {
render() {
return (
);
import React, { Component } from 'react';
import { NativeAdsManager, AdSettings } from 'react-native-fbads';
import { Container } from 'native-base';
import { nativeAdPlacementId } from '../Variables/index';
import NativeAdView from './NativeAdView';
AdSettings.clearTestDevices();
AdSettings.setLogLevel('debug');
AdSettings.addTestDevice(AdSettings.currentDeviceHash);
const adsManager = new NativeAdsManager(nativeAdPlacementId);
export default class NativeAd extends Component {
render() {
return (
import React, { Component } from 'react';
import { NativeAdsManager, AdSettings } from 'react-native-fbads';
import { Container } from 'native-base';
import { nativeAdPlacementId } from '../Variables/index';
import NativeAdView from './NativeAdView';
AdSettings.clearTestDevices();
AdSettings.setLogLevel('debug');
AdSettings.addTestDevice(AdSettings.currentDeviceHash);
const adsManager = new NativeAdsManager(nativeAdPlacementId);
export default class NativeAd extends Component {
render() {
return (
import React, { Component } from 'react';
import { NativeAdsManager, AdSettings } from 'react-native-fbads';
import { Container } from 'native-base';
import { nativeAdPlacementId } from '../Variables/index';
import NativeAdView from './NativeAdView';
AdSettings.clearTestDevices();
AdSettings.setLogLevel('debug');
AdSettings.addTestDevice(AdSettings.currentDeviceHash);
const adsManager = new NativeAdsManager(nativeAdPlacementId);
export default class NativeAd extends Component {
render() {
return (
);
}
}
paddingHorizontal: 30,
elevation: 3,
borderTopWidth: 0,
margin: 10,
borderRadius: 6,
}}
>
{this.props.nativeAd.callToActionText}
);
}
}
export default withNativeAd(NativeAdView);