React Native Admob

screenshot of React Native Admob

A react-native component for Google AdMob banners

Overview

The react-native-admob npm library is a module for Google AdMob Banners, Interstitials, and Rewarded Videos, as well as DFP Banners. It provides components for banners while using an imperative API for interstitials and rewarded videos. The master branch tracks development of version 2, which is currently in beta, while version 1 can be accessed via the 1.x branch.

Features

  • Banner Types as Components: Implement banners as components in your app.
  • Imperative API for Interstitials and Rewarded Videos: Different approach for interstitials and rewarded videos.
  • Support for Google AdMob and DFP: Works with Google AdMob Banners, Interstitials, Rewarded Videos, and DFP Banners.
  • Multiple Ad Event Callback Functions: Callback functions for events like ad loaded, failed to load, ad opened, closed, left application, and size change.
  • Additional Properties for PublisherBanner: Includes properties such as onAppEvent and validAdSizes for PublisherBanner.

Summary

The react-native-admob npm package offers a versatile solution for integrating various types of ads in React Native apps. With components for banners and an imperative API for interstitials and rewarded videos, along with comprehensive ad event callbacks, it provides a flexible and feature-rich approach to incorporating ads from Google AdMob and DFP into your applications.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.