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

v1.0.2

Published

Firebase Dynamic Links alternative for React Native

Readme

react-native-fluq

A Firebase Dynamic Links alternative for React Native applications.

Features

  • Generate dynamic links on the backend
  • Pass parameters through the installation process
  • Handle platform-specific behavior (iOS, Android, Web)
  • Receive parameters after app installation
  • Lightweight and easy to use

Installation

npm install react-native-fluq --save
# or
yarn add react-native-fluq

iOS Setup

  1. Add the following to your AppDelegate.m:
#import <RNFluq.h>

// Add this method if it doesn't exist
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
  return [RNFluq handleLink:url];
}

// For Universal Links
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
  if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) {
    return [RNFluq handleLink:userActivity.webpageURL];
  }
  return NO;
}
  1. Update your Info.plist to add URL Schemes:
<key>CFBundleURLTypes</key>
<array>
  <dict>
    <key>CFBundleURLSchemes</key>
    <array>
      <string>your-app-scheme</string>
    </array>
  </dict>
</array>

Android Setup

  1. Add the following to your android/app/src/main/AndroidManifest.xml within the <activity> tag:
<intent-filter>
  <action android:name="android.intent.action.VIEW" />
  <category android:name="android.intent.category.DEFAULT" />
  <category android:name="android.intent.category.BROWSABLE" />
  <data android:scheme="your-app-scheme" />
</intent-filter>
  1. Update your MainActivity.java:
import com.fluq.RNFluqPackage;
import android.content.Intent;

public class MainActivity extends ReactActivity {
  // ...

  @Override
  public void onNewIntent(Intent intent) {
    super.onNewIntent(intent);
    ((RNFluqModule) getReactNativeHost()
      .getReactInstanceManager()
      .getNativeModule("RNFluq"))
      .onNewIntent(intent);
  }
}
  1. Make sure to add the package to your MainApplication.java:
import com.fluq.RNFluqPackage;

// Inside the getPackages() method
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Add the dynamic links package
  packages.add(new RNFluqPackage());
  return packages;
}

Usage

Check for initial link that opened the app

import Fluq from 'react-native-fluq';

// In your component or app startup
async function checkInitialLink() {
  const linkData = await Fluq.getInitialLink();
  if (linkData) {
    // App was opened with a dynamic link
    console.log('App opened with link:', linkData.url);
    console.log('Parameters:', linkData.params);
    
    // Handle link parameters
    if (linkData.params.referral) {
      // Handle referral code
    }
  }
}

Listen for dynamic links while app is running

import Fluq from 'react-native-fluq';

// Set up listener in your component
useEffect(() => {
  const unsubscribe = Fluq.onLink((linkData) => {
    // App received a dynamic link while running
    console.log('Received link:', linkData.url);
    console.log('Parameters:', linkData.params);
    
    // Handle the link parameters
    // ...
  });
  
  // Clean up listener
  return () => unsubscribe();
}, []);

Backend Configuration

This library works with any backend that can generate appropriately formatted dynamic links. The backend should:

  1. Generate a short URL that redirects to your app
  2. Include platform-specific fallback URLs for web, iOS, and Android
  3. Pass parameters through the installation process

See the C# Azure Functions backend implementation for a complete reference.

License

MIT