How to use react-native-fbads - 6 common examples

To help you get started, we’ve selected a few react-native-fbads examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github callstack / react-native-fbads / example / src / InterstitialAds / index.js View on Github external
_showAd() {
    InterstitialAdManager.showAd(InterstitialAdPlacementId)
      .then(() => {})
      .catch(() => {});
  }
}
github callstack / react-native-fbads / example / src / NativeAds / index.js View on Github external
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 (
      
        
      
    );
github callstack / react-native-fbads / example / src / NativeAds / index.js View on Github external
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 (
github callstack / react-native-fbads / example / src / NativeAds / index.js View on Github external
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 (
github callstack / react-native-fbads / example / src / NativeAds / index.js View on Github external
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 (
      
        
      
    );
  }
}
github callstack / react-native-fbads / example / src / NativeAds / NativeAdView.js View on Github external
paddingHorizontal: 30,
              elevation: 3,
              borderTopWidth: 0,
              margin: 10,
              borderRadius: 6,
            }}
          >
            {this.props.nativeAd.callToActionText}
          
        
      
    );
  }
}

export default withNativeAd(NativeAdView);