npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-admost

v1.0.2

Published

Admost for React Native

Readme

react-native-admost

WARNING

This package is in under heavy development. Use at own risk!

Getting started

$ npm install react-native-admost --save

iOS

  1. You should install required pods, please follow on Admost documentation.

  2. Complete XCode setup, please follow on Admost documentation.

  3. 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

import Admost from "react-native-admost";
//
//
Admost.setAppID("Your Application ID");
Admost.setUserConsents(true);
Admost.setSubjectToGDPR(false);
Admost.setUserChild(false);
Admost.start();

Interstitial

import {
  AdmostInterstitial,
  AIEventEmitter,
  AIEvents,
} from "react-native-admost";
//
//
componentDidMount = async () => {
  await AdmostInterstitial.initWithZoneID(
    "39f74377-5682-436a-9338-9d1c4df410bd"
  );
  await AdmostInterstitial.loadAd();
  this.subscribeEvents();
};

subscribeEvents = () => {
  AIEventEmitter.addListener(AIEvents.DID_FAIL_TO_RECEIVE, async () => {
    console.log("ad did fail to receive");
  });
  AIEventEmitter.addListener(AIEvents.DID_RECEIVE, async () => {
    console.log("ad did receive");
    await AdmostInterstitial.showAd();
  });
  AIEventEmitter.addListener(AIEvents.DID_SHOW, async () => {
    console.log("ad did show");
  });
};

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

import { AdmostRewarded, AREvents, AREventEmitter } from "react-native-admost";
//
//
componentDidMount = async () => {
  await AdmostRewarded.initWithZoneID("2bdefd44-5269-4cbc-b93a-373b74a2f067");
  await AdmostRewarded.loadAd();
  this.subscribeEvents();
};

subscribeEvents = () => {
  AREventEmitter.addListener(AREvents.DID_FAIL_TO_RECEIVE, async () => {
    console.log("ad did fail to receive");
  });
  AREventEmitter.addListener(AREvents.DID_RECEIVE, async () => {
    console.log("ad did receive");
    await AdmostRewarded.showAd();
  });
  AREventEmitter.addListener(AREvents.DID_SHOW, async () => {
    console.log("ad did show");
  });
  AREventEmitter.addListener(AREvents.DID_COMPLETE, async () => {
    console.log("ad did complete");
  });
};

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

import Admost, {
  AdmostBanner,
} from 'react-native-admost';
//
//
render() {
    return (
      <View style={styles.container}>
        <Text style={styles.welcome}>☆Admost example☆</Text>
          <AdmostBanner
            zoneID={'b4009772-de04-42c4-bbaa-c18da9e4a1ab'}
            width={320}
          />
      </View>
    );
  }

Extras

In App Purchase Tracking

import Admost from "react-native-admost";
//
//
Admost.trackPurchase("transactionId", "currency", "price as float");

Setting Application User Id

import Admost from "react-native-admost";
//
//
Admost.setUserId("applicationUserID");