react-native-admost
WARNING
This package is in under heavy development. Use at own risk!
Getting started
$ npm install react-native-admost --save
iOS
-
You should install required pods, please follow on Admost documentation.
-
Complete XCode setup, please follow on Admost documentation.
-
Then simply run pod install;
$ cd ios && pod install && cd ..
Android
You should install Ad Networks and complete required steps Admost documentation.
Usage
Here are test ids provided by Admost:
For iOS: Application Id: @"15066ddc-9c18-492c-8185-bea7e4c7f88c" Banner Zone Id: @"b4009772-de04-42c4-bbaa-c18da9e4a1ab" Interstitial Zone Id: @"39f74377-5682-436a-9338-9d1c4df410bd" RewardedVideo Zone Id: @"2bdefd44-5269-4cbc-b93a-373b74a2f067" Offerwall Zone Id: @"1cadca08-33f9-4da7-969e-ef116d4e7d0e" For Android: Application Id = "6cc8e89a-b52a-4e9a-bb8c-579f7ec538fe"; Banner Zone Id = "86644357-21d0-45a4-906a-37262461df65"; Interstitial Zone Id = "f99e409b-f9ab-4a2e-aa9a-4d143e6809ae"; RewardedVideo Zone Id = "88cfcfd0-2f8c-4aba-9f36-cc0ac99ab140"; Offerwall Zone Id = "fa1072e4-afcf-49b6-a919-1ab1ab1b0aa9";
Initializing
;////Admost;Admost;Admost;Admost;Admoststart;
Interstitial
;////componentDidMount = async { await AdmostInterstitial; await AdmostInterstitial; this;}; { AIEventEmitter; AIEventEmitter; AIEventEmitter;};
Interstitial Events
const AIEvents = DID_RECEIVE: "didReceiveInterstitial" DID_FAIL_TO_RECEIVE: "didFailToReceiveInterstitial" DID_SHOW: "didShowInterstitial" DID_FAIL_TO_SHOW: "didFailToShowInterstitial" DID_CLICK: "didClickInterstitial" DID_DISMISS: "didDismissInterstitial";
Rewarded Video
;////componentDidMount = async { await AdmostRewarded; await AdmostRewarded; this;}; { AREventEmitter; AREventEmitter; AREventEmitter; AREventEmitter;};
Rewarded Video Events
const AREvents = DID_RECEIVE: "didReceiveRewardedVideo" DID_FAIL_TO_RECEIVE: "didFailToReceiveRewardedVideo" DID_SHOW: "didShowRewardedVideo" DID_FAIL_TO_SHOW: "didFailToShowRewardedVideo" DID_CLICK: "didClickRewardedVideo" DID_DISMISS: "didDismissRewardedVideo" DID_COMPLETE: "didCompleteRewardedVideo";
Banner
;//// { return <View style=stylescontainer> <Text style=styleswelcome>☆Admost example☆</Text> <AdmostBanner zoneID='b4009772-de04-42c4-bbaa-c18da9e4a1ab' width=320 /> </View> ; }
Extras
In App Purchase Tracking
;////Admost;
Setting Application User Id
;////Admost;