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

@linkflow/react-native-sdk

v1.0.8

Published

LinkFlow SDK for React Native - Mobile attribution and deep linking

Readme

LinkFlow React Native SDK

Production-ready React Native SDK for mobile attribution and deep linking.

Features

| Feature | Description | |---|---| | Deferred Deep Linking | Routes users to specific in-app content after install, even when the app was not present at click time | | Universal Links & App Links | Native iOS Universal Links and Android App Links for seamless, browser-free handoff | | Custom URL Schemes | Full support for custom URI scheme handling as a reliable fallback | | Install Attribution | Deterministic and probabilistic attribution to match installs back to the originating click | | In-App Event Tracking | Track post-install events and revenue to measure campaign performance end-to-end | | Cross-Platform API | A unified JavaScript API that works identically on iOS and Android | | TypeScript | Fully typed with bundled declaration files — no @types package required | | React Hooks | useAttribution hook for ergonomic integration into functional components |

Installation

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

iOS Setup

cd ios && pod install

Add to Info.plist:

<key>NSUserTrackingUsageDescription</key>
<string>We use tracking to measure ad performance</string>

Android Setup

No additional setup required!

Quick Start

1. Initialize SDK

import LinkFlow from '@linkflow/react-native-sdk';
import { useEffect } from 'react';

function App() {
  useEffect(() => {
    // Initialize SDK
    LinkFlow.initialize({
      apiBaseURL: 'https://thelinkflow.app',
      enableLogging: __DEV__
    });

    // Set attribution callback
    LinkFlow.setAttributionCallback((result) => {
      if (result.attributed) {
        console.log('Deep Link:', result.deepLinkValue);
        console.log('Campaign:', result.campaignData);

        // Navigate based on deep link
        if (result.deepLinkValue?.includes('product')) {
          navigation.navigate('Product', {
            ...result.deepLinkParams
          });
        }
      }
    });

    // Handle app launch
    LinkFlow.handleAppLaunch();

    return () => LinkFlow.destroy();
  }, []);

  return <YourApp />;
}

2. Track Events

import LinkFlow from '@linkflow/react-native-sdk';

// Track purchase
await LinkFlow.trackEvent('purchase', {
  order_id: '12345',
  currency: 'USD'
}, 99.99);

// Track product view
await LinkFlow.trackEvent('product_view', {
  product_id: 'abc123'
});

3. Handle Deep Links

Deep links are automatically handled and delivered via the attribution callback:

LinkFlow.setAttributionCallback((result) => {
  if (result.deepLinkValue) {
    // Parse and navigate
    const url = new URL(result.deepLinkValue);
    if (url.pathname.includes('/product/')) {
      const productId = url.pathname.split('/').pop();
      navigation.navigate('Product', { id: productId });
    }
  }
});

API Reference

LinkFlow.initialize(config)

Initialize the SDK.

await LinkFlow.initialize({
  apiBaseURL: 'https://thelinkflow.app',
  enableLogging: true
});

LinkFlow.setAttributionCallback(callback)

Set callback for attribution results.

LinkFlow.setAttributionCallback((result) => {
  console.log(result);
});

LinkFlow.handleAppLaunch()

Handle app launch and resolve attribution.

await LinkFlow.handleAppLaunch();

LinkFlow.trackEvent(eventName, params, revenue)

Track in-app events.

await LinkFlow.trackEvent('purchase', { order_id: '123' }, 99.99);

LinkFlow.getAttributionResult()

Get attribution result if available.

const result = await LinkFlow.getAttributionResult();

TypeScript Support

Full TypeScript support included:

import LinkFlow, { AttributionResult } from '@linkflow/react-native-sdk';

const handleAttribution = (result: AttributionResult) => {
  if (result.attributed) {
    // TypeScript knows all properties
    console.log(result.deepLinkValue);
    console.log(result.campaignData);
  }
};

Requirements

  • React Native 0.60+
  • iOS 13.0+
  • Android API 21+

License

MIT License