Releases: sbugert/react-native-admob
Releases · sbugert/react-native-admob
v2.0.0-beta.3
- 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
Fixes
Fix event name collision (#192)
v2.0.0-beta.1
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
loadBannermethod 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
validAdSizesproperty for DFP banners - replaced the
testDeviceIDproperty withtestDevices. Also the simulator device id can now be specified using thesimulatorIdproperty on any of the classes (e.g.AdMobBanner.simulatorId) instead of"EMULATOR". - Fixed the implementation of ad app events.
- Exposed the
onSizeChangeprop. - Updated the implementation of
requestAd()andshowAd()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 |
interstitialDidLoadrewardedVideoDidLoad |
adLoaded |
interstitialDidFailToLoadrewardedVideoDidFailToLoad |
adFailedToLoad |
interstitialDidOpenrewardedVideoDidOpen |
adOpened |
interstitialDidCloserewardedVideoDidClose |
adClosed |
interstitialWillLeaveApplicationrewardedVideoWillLeaveApplication |
adLeftApplication |
rewardedVideoDidRewardUser |
rewarded |
iOS Specific
- The conversion of json to
GADAdSizeis now implemented using aRCTConvertcategory. - The
onSizeChangehandler is now also called through theGADAdSizeDelegatein addition to comparing the bounds of the view to the adsize. - Replaced remaining use of deprecated
RCTEventDispatcherwithRCTEventEmitter
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
v1.3.2
v2.0.0-alpha.4
Bugfixes
- Resolve an API consistency between iOS and Android to prevent a crash on Android when trying to access the
simulatorIdfrom a UI component.
v2.0.0-alpha.3
Bugfixes
- Prevent a crash when the
adUnitIDwas set twice. (Android)
v2.0.0-alpha.2
Reimplemented banner types.
This version is not backwards compatible.
Notable changes:
- Event props are now prefixed with
on. testDeviceIDis nowtestDevices- ...
New features:
- Support for multiple adsizes on PublisherBanner (
validAdSizesprop). - ...