Skip to content

Releases: sbugert/react-native-admob

v2.0.0-beta.3

v2.0.0-beta.3 Pre-release
Pre-release

Choose a tag to compare

@koenpunt koenpunt released this 13 Nov 12:28
  • Update example to React Native 0.50.3, update packager config
  • Fix smart banner display on android (#194) @rizzomichaelg
  • Example project smart banner as a new element @rizzomichaelg
  • Fix: add checking for null to avoid exception when .setAdUnitId is set twice (#204) @itchingpixels

v2.0.0-beta.2

v2.0.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@koenpunt koenpunt released this 04 Oct 07:16

Fixes

Fix event name collision (#192)

v2.0.0-beta.1

v2.0.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@koenpunt koenpunt released this 03 Oct 21:08

Changelog

All the changes mentioned here can be found in this PR: #165

  • The banner views are now instantiated by React instead of vending an instance from the manager.
  • The loadBanner method is now exposed to react, to allow easy banner refresh, and removes the need of checking which properties are available before making a request to admob.
  • The exported view properties now match the properties of the DFPBannerView/GADBannerView (the iOS library classes).
  • Implemented the validAdSizes property for DFP banners
  • replaced the testDeviceID property with testDevices. Also the simulator device id can now be specified using the simulatorId property on any of the classes (e.g. AdMobBanner.simulatorId) instead of "EMULATOR".
  • Fixed the implementation of ad app events.
  • Exposed the onSizeChange prop.
  • Updated the implementation of requestAd() and showAd() to return a promise instead of using a callback function.
  • All function props and events have been normalized.
1.3 2.0
bannerSize adSize
onAdViewDidReceiveAd onAdLoaded
onDidFailToReceiveAdWithError onAdFailedToLoad
onAdViewWillPresentScreen onAdOpened
onAdViewWillDismissScreen onAdClosed
onAdViewWillLeaveApplication onAdLeftApplication
onDidReceiveAppEvent onAppEvent
interstitialDidLoad
rewardedVideoDidLoad
adLoaded
interstitialDidFailToLoad
rewardedVideoDidFailToLoad
adFailedToLoad
interstitialDidOpen
rewardedVideoDidOpen
adOpened
interstitialDidClose
rewardedVideoDidClose
adClosed
interstitialWillLeaveApplication
rewardedVideoWillLeaveApplication
adLeftApplication
rewardedVideoDidRewardUser rewarded

iOS Specific

  • The conversion of json to GADAdSize is now implemented using a RCTConvert category.
  • The onSizeChange handler is now also called through the GADAdSizeDelegate in addition to comparing the bounds of the view to the adsize.
  • Replaced remaining use of deprecated RCTEventDispatcher with RCTEventEmitter

Android

  • Added messages to the errors instead of just having error codes

Installation

This version can be installed using the next tag of the package:

Yarn

yarn add react-native-admob@next

npm

npm install --save react-native-admob@next

v2.0.0-alpha.5

v2.0.0-alpha.5 Pre-release
Pre-release

Choose a tag to compare

@koenpunt koenpunt released this 03 Oct 20:54

Changelog

v1.3.2

Choose a tag to compare

@koenpunt koenpunt released this 19 Aug 16:46

Changelog

  • Support React Native 0.47 (#164)
  • Update links to Google Mobile Ads SDK (#153)
  • Update example to make it run on Xcode 8 (#152)

v2.0.0-alpha.4

v2.0.0-alpha.4 Pre-release
Pre-release

Choose a tag to compare

@koenpunt koenpunt released this 11 Aug 19:33

Bugfixes

  • Resolve an API consistency between iOS and Android to prevent a crash on Android when trying to access the simulatorId from a UI component.

v2.0.0-alpha.3

v2.0.0-alpha.3 Pre-release
Pre-release

Choose a tag to compare

@koenpunt koenpunt released this 09 Aug 13:18

Bugfixes

  • Prevent a crash when the adUnitID was set twice. (Android)

v2.0.0-alpha.2

v2.0.0-alpha.2 Pre-release
Pre-release

Choose a tag to compare

@koenpunt koenpunt released this 05 Aug 23:01

Reimplemented banner types.

This version is not backwards compatible.

Notable changes:

  • Event props are now prefixed with on.
  • testDeviceID is now testDevices
  • ...

New features:

  • Support for multiple adsizes on PublisherBanner (validAdSizes prop).
  • ...

v1.3.0

Choose a tag to compare

@alvaromb alvaromb released this 19 Apr 16:37

Changelog

  • Fix iOS deployment target to match React Native (8.0) #91 (thanks @ndbroadbent!)

v1.2.1

Choose a tag to compare

@alvaromb alvaromb released this 21 Mar 07:29

Changelog

  • Replace the deprecated event dispatching via RCTEventDispatcher with RCTBubblingEventBlocks for iOS #66 (thanks @mars-lan)