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

@adtogether/react-native-sdk

v0.1.27

Published

The official AdTogether React Native SDK — reciprocal ad exchange to increase conversions and grow your audience.

Readme

AdTogether React Native SDK

npm version License: MIT


AdTogether is an ad exchange platform designed to empower developers and creators. By participating in our network, you can engage in reciprocal marketing for your own applications while simultaneously driving traffic to your products and helping you increase conversions. Our core philosophy is simple: "Show an ad, get an ad shown".

This SDK allows React Native developers to easily integrate AdTogether ads into their applications. By displaying ads from other community members, you earn Ad Credits that allow your own app's ads to be shown across the AdTogether network.

[!IMPORTANT] Developer Account Required: Before integrating the SDK, you must create a developer account at https://adtogether.relaxsoftwareapps.com to generate your appId and configure your ad units. Integration will not work without a valid appId.

🖼️ Visualizing the Experience

| Native Banner Ad | Interstitial Full-Screen | |:---:|:---:| | Banner Example | Interstitial Example | | Adaptive React Native Banner Component | Full-Screen Interstitial Experience |

Features

  • 🖼️ Banner Ads — Native React Native AdTogetherBanner component with impression tracking.
  • 📺 Interstitial Ads — Full-screen AdTogetherInterstitial component with a configurable close-button countdown.
  • 🌑 Dark Mode Support — All ad components automatically adapt to system preference.
  • ⚖️ Fair Exchange — Automated impression and click tracking ensures fair distribution of ad credits.
  • 🔌 Easy Integration — A single initialize() call and one component is all you need to start earning credits and increase conversions.

Getting Started

1. Install

npm install @adtogether/react-native-sdk
# or
yarn add @adtogether/react-native-sdk

2. Initialize

Call AdTogether.initialize() before rendering any ad components. You can obtain your App ID from the AdTogether Dashboard.

import { AdTogether } from '@adtogether/react-native-sdk';

AdTogether.initialize({ 
  appId: 'YOUR_APP_ID',
  // bundleId: 'com.example.app' // optional: auto-detected when possible
});

Usage

Banner Ads

Use the AdTogetherBanner component anywhere in your React Native app.

import { AdTogetherBanner } from '@adtogether/react-native-sdk';
import { View, Text } from 'react-native';

function MyApp() {
  return (
    <View style={{ flex: 1 }}>
      <Text>My Awesome App</Text>

      <AdTogetherBanner
        adUnitId="home_bottom_banner"
        showCloseButton={true}
        onAdLoaded={() => console.log('Banner loaded!')}
        onAdFailedToLoad={(error) => console.error('Banner error:', error)}
        onAdClosed={() => console.log('Banner closed!')}
      />
    </View>
  );
}

AdTogetherBanner Props

| Prop | Type | Default | Description | |--------------------|-------------------------|-----------|-------------| | adUnitId | string | 'default' | Optional label for this ad placement (e.g. 'home_banner', 'chat_bottom'). Used for analytics grouping only — not validated server-side. | | showCloseButton | boolean | false | Show a dismissable close button overlay. | | onAdClosed | () => void | — | Called when the user closes the ad. | | theme | 'dark' \| 'light' \| 'auto' | 'auto' | Color scheme. 'auto' follows system preference. | | onAdLoaded | () => void | — | Called when the ad has been successfully fetched and rendered. | | onAdFailedToLoad | (error: Error) => void| — | Called if the ad fails to load. | | style | StyleProp<ViewStyle> | — | Additional React Native styles for the container. |

Interstitial Ads

Show a full-screen interstitial ad as a modal overlay. A countdown timer is displayed before the user is allowed to close the ad.

import { useState } from 'react';
import { View, Button } from 'react-native';
import { AdTogetherInterstitial } from '@adtogether/react-native-sdk';

function MyApp() {
  const [showInterstitial, setShowInterstitial] = useState(false);

  return (
    <View style={{ flex: 1, justifyContent: 'center' }}>
      <Button title="Show Interstitial Ad" onPress={() => setShowInterstitial(true)} />

      <AdTogetherInterstitial
        adUnitId="level_complete_interstitial"
        isOpen={showInterstitial}
        onClose={() => setShowInterstitial(false)}
        closeDelay={5}
        onAdLoaded={() => console.log('Interstitial ready')}
        onAdFailedToLoad={(error) => console.error('Interstitial error:', error)}
      />
    </View>
  );
}

AdTogetherInterstitial Props

| Prop | Type | Default | Description | |--------------------|-------------------------|-----------|-------------| | adUnitId | string | 'default' | Optional label for this ad placement. Used for analytics grouping only. | | isOpen | boolean | required | When true, the interstitial is displayed. | | onClose | () => void | required | Called when the user closes the interstitial. | | closeDelay | number | 3 | Seconds before the close button appears. A countdown is shown during this time. | | theme | 'dark' \| 'light' \| 'auto' | 'auto' | Color scheme. 'auto' follows system preference. | | onAdLoaded | () => void | — | Called when the ad has been successfully fetched. | | onAdFailedToLoad | (error: Error) => void| — | Called if the ad fails to load. The dialog is automatically dismissed on failure. |

How Credits Work

  1. Earn credits — Every time your app displays an ad from the AdTogether network and the impression is verified, you earn ad credits.
  2. Spend credits — Your ad credits are automatically spent to show your campaigns inside other apps on the network, helping you increase conversions.
  3. Fair weighting — Different ad formats and geographies have different credit weights, ensuring a level playing field for apps of all sizes.

Create and manage your campaigns from the AdTogether Dashboard.

Additional Information

License

This project is licensed under the MIT License — see the LICENSE file for details.