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

expo-facebook-analytics

v1.1.2

Published

High-performance Facebook Analytics for React Native using Nitro Modules

Readme

expo-facebook-analytics

High-performance Facebook Analytics for React Native using Nitro Modules.

📖 Documentation · 🧪 Example app

Minimal by design. This library wraps only the Facebook App Events / Analytics APIs — event logging, user identity, and device identifiers. It is not a full Facebook SDK (no Login, Sharing, Graph API, or Gaming). If you only need analytics and conversion tracking, that's the point: a tiny, fast surface area built on a zero-overhead Nitro/JSI bridge to the native SDK.

Installation

npx expo install expo-facebook-analytics react-native-nitro-modules

Add the config plugin to your app.json:

{
  "expo": {
    "plugins": [
      [
        "expo-facebook-analytics",
        {
          "appID": "YOUR_FACEBOOK_APP_ID",
          "clientToken": "YOUR_FACEBOOK_CLIENT_TOKEN"
        }
      ]
    ]
  }
}

The module ships native code, so it requires a development build — it can't run in Expo Go.

Quick start

import { logEvent, logPurchase, AppEvents } from 'expo-facebook-analytics';

logEvent(AppEvents.ViewedContent);
logEvent(AppEvents.AddedToCart, { product: 'sku-123' });
logPurchase(29.99, 'USD');

For deferred (consent-gated) initialization, set isAutoInitEnabled: false in the plugin and call initialize() yourself; with autoLogAppEventsEnabled: false, also call activateApp() so Meta still receives the install event. Enable the Facebook SDK's native logging with setLoggingEnabled(true). See the documentation for the full API.

See the documentation for the full API, config-plugin options, manual initialization, and predefined constants.

Requirements

| Tool | Version | | ---------------------------- | ------- | | Expo SDK | 56+ | | React Native | 0.85+ | | react-native-nitro-modules | 0.35.9+ | | iOS deployment target | 16.4+ | | Android minSdkVersion | 24+ |

Native SDKs: Facebook iOS/Android SDK 18. Requires the React Native New Architecture (default in SDK 56).

Contributing

bun install        # install dependencies
bun run nitrogen   # regenerate native bindings
bun run prepare    # build the library
bun test           # run tests
bun run check      # lint & format

To run the example app, see example/.

License

MIT