How to use the react-native-fbads.AdSettings.setLogLevel function in react-native-fbads

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 / 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 (