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-routix

v1.0.6

Published

The official Routix SDK for React Native. Attribute deep links and track conversion events.

Readme

Routix React Native SDK 🚀

npm version License: MIT Build Status

The official Routix SDK for React Native. Professional attribution, deep linking, and conversion tracking for your cross-platform mobile apps.


📖 Table of Contents


🚀 Features

  • 🎯 Precision Attribution: Resolve deep links via Android Install Referrer and iOS Fingerprinting.
  • 📈 Conversion Tracking: Track install, lead, and sale events with robust metadata support.
  • ⚛️ Native Performance: Built with TypeScript and optimized for React Native 0.60+.
  • 🛡️ Privacy First: Lightweight implementation focusing on essential attribution data.

📦 Installation

npm install react-native-routix
# or
yarn add react-native-routix

Android Setup

Add the Install Referrer dependency to your android/app/build.gradle:

dependencies {
    implementation 'com.android.installreferrer:installreferrer:2.2'
}

iOS Setup

Run pod install in your ios directory:

cd ios && pod install

🛠️ Usage

1. Initialize the SDK

Initialize the SDK at the root of your application (e.g., App.js or index.js).

import { Routix } from 'react-native-routix';

Routix.initialize({
  apiKey: 'your_workspace_api_key'
});

2. Resolve Deep Links (Deferred)

Resolve attribution data on app launch for users arriving via the App Store/Play Store.

const resolveAttribution = async () => {
  try {
    const match = await Routix.resolve({ enableClipboard: true });
    if (match?.success) {
      console.log('Attributed to:', match.short_code);
    }
  } catch (error) {
    console.error('Routix Resolve Error:', error);
  }
};

3. Handle Deep Links (Direct)

Parses a direct deep link URL when the app is already installed.

import { Linking } from 'react-native';

Linking.getInitialURL().then((url) => {
  if (url) {
    const match = Routix.handleDeepLink(url);
    if (match?.success) {
      console.log('Opened via:', match.short_code);
    }
  }
});

4. Track Events

Tie conversion events directly to a campaign short code for ROI analysis.

await Routix.trackSale('SUMMER_24', 29.99, 'USD', { plan: 'pro' });

5. Track Custom Events

Track workspace-level actions like signups or tutorial completions independent of any link.

await Routix.trackCustomEvent('sign_up_completed', {
  method: 'email'
});

🤝 Support


📄 License

This SDK is distributed under the MIT License. See LICENSE for more information.