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

@npaw/forge-react-native

v10.8.0

Published

NPAW Forge analytics for React Native: New Architecture TurboModule facade over the native Forge Android/Apple SDKs.

Readme

@npaw/forge-react-native

NPAW Forge analytics for React Native: application sessions, user identity, video and ad analytics, capture, and network observation, powered by the shared Forge analytics core through the native Android and Apple SDKs.

Use of this package requires an active NPAW commercial agreement. See LICENSE.

Install

npm install @npaw/forge-react-native

Requires React Native 0.75+ with the New Architecture enabled (TurboModules).

iOS

cd ios && pod install

The default pod is IMA-free. For an app-owned native Google IMA integration, opt in in ios/Podfile (iOS/tvOS 15+), then run pod install again:

# Replace the template's platform line so the app target keeps the higher of
# React Native's floor (min_ios_version_supported) and 15.0.
platform :ios, [Gem::Version.new(min_ios_version_supported), Gem::Version.new('15.0')].max.to_s

# Inside the application target:
pod 'NPAWForgeReactNative/IMAAdapter', :path => '../node_modules/@npaw/forge-react-native'
pod 'NPAWForgeReactNativeVideo/IMAAdapter', :path => '../node_modules/@npaw/forge-react-native-video'

Do not hardcode '15.0': React Native 0.79 requires iOS 15.1, and a lower app target fails the build. For a tvOS target apply the same rule to platform :tvos: the higher of 15.0 and your react-native-tvos floor. CocoaPods does not raise the application target automatically from a pod subspec.

The two subspecs share the bundled Forge Core; do not add a separate NPAWForgeApple/Core to the same application. The video subspec is needed when the @npaw/forge-react-native-video package is installed so both Swift targets use the IMA adapter's iOS/tvOS 15+ floor.

Android

The module depends on the published Forge Android artifacts. Two host-app settings are required:

  • Declare the NPAW Maven repository in the root android/build.gradle. The repository the module declares for itself does not reach your app's dependency resolution, so without it the first build fails with Could not find com.npaw.forge:forge-android-core:

    allprojects {
        repositories {
            maven { url 'https://artifact.plugin.npaw.com/artifactory/plugins/android' }
        }
    }

    With dependencyResolutionManagement in settings.gradle, add the same maven { url ... } entry there instead. With Expo, the config plugin adds it during prebuild.

  • Compile against Android API 35 or newer (compileSdkVersion = 35 in the ext block of the root android/build.gradle). The Forge artifacts declare that floor in their AAR metadata, so a lower value fails checkReleaseAarMetadata.

To report the device's connection type, also declare the normal android.permission.ACCESS_NETWORK_STATE permission in your app manifest; without it Android reports none.

Usage

import { NPAWForge } from '@npaw/forge-react-native';

const forge = await NPAWForge.create('<account-code>', {
  appName: 'My App',
  appReleaseVersion: '1.0.0',
});

await forge.startSession({ screen: 'Home' });

Player adapters

This package reports application sessions and manual video/ad events. For automatic playback reporting with react-native-video, add @npaw/forge-react-native-video.

Documentation

Integration guides and the API reference are published at npaw.com.