How to use @react-native-firebase/admob - 1 common examples

To help you get started, we’ve selected a few @react-native-firebase/admob 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 invertase / react-native-firebase / tests / app.admob.js View on Github external
//
  //     interstitialAd.load();
  //   }

  useEffect(() => {
    init().catch(console.error);
  }, []);

  return (
    <View
      style={{ flex: 1, justifyContent: 'center', flexDirection: 'column', alignItems: 'center' }}
    >
      <BannerAd
        size={firebase.admob.BannerAdSize.LARGE_BANNER}
        request={{}}
        unitId={TestIds.BANNER + '123'}
        onAdLoaded={() => console.log('loaded')}
        onAdFailedToLoad={e => console.log('failed to load', e)}
      />
    </View>
  );
}

@react-native-firebase/admob

React Native Firebase - Google AdMob is an easy way to monetize mobile apps with targeted, in-app advertising.

Apache-2.0
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis

Popular @react-native-firebase/admob functions