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

@signakit/flags-react-native

v1.3.0

Published

Official React Native / Expo SDK for SignaKit Feature Flags

Readme

@signakit/flags-react-native

Official React Native / Expo SDK for SignaKit Feature Flags. Provides a context provider, hooks, and a low-level client for evaluating feature flags in React Native applications.

Installation

npm install @signakit/flags-react-native
# or for Expo
npx expo install @signakit/flags-react-native

Optional — install AsyncStorage if you want offline-tolerant config caching:

npx expo install @react-native-async-storage/async-storage

Quick Start (Expo)

Wrap your app with SignaKitProvider, then use useFlag anywhere in the tree.

// App.tsx
import React from 'react'
import { SignaKitProvider } from '@signakit/flags-react-native'
import RootNavigator from './navigation/RootNavigator'

export default function App() {
  return (
    <SignaKitProvider
      sdkKey="sk_prod_abc123_1234_xxxx"
      userId="user-123"
      attributes={{ plan: 'premium', country: 'US' }}
      persistConfig
    >
      <RootNavigator />
    </SignaKitProvider>
  )
}
// CheckoutScreen.tsx
import { Text, View } from 'react-native'
import { useFlag } from '@signakit/flags-react-native'

export function CheckoutScreen() {
  const { enabled, loading } = useFlag('new-checkout')

  if (loading) return null
  return enabled ? <NewCheckout /> : <LegacyCheckout />
}

Tracking events

import { useUserContext } from '@signakit/flags-react-native'

function PurchaseButton() {
  const userContext = useUserContext()

  const onPurchase = async () => {
    await userContext?.trackEvent('purchase', { value: 99.99 })
  }

  return <Button title="Buy" onPress={onPurchase} />
}

Behavior notes

  • Exposure events are auto-fired (fire-and-forget) when decide / decideAll returns a decision, except when decision.ruleType === 'targeted'. Targeted rules are simple feature-flag rollouts with no experiment to attribute.
  • Exposure dedup is in-memory per app cold start (key: flagKey:userId). This matches mobile session semantics — re-launching the app starts a new session.
  • Config persistence is optional. With persistConfig, the last good config is cached to AsyncStorage so the app can boot with stale-but-valid flags when the network is unavailable. If-None-Match is used for ETag-based 304s.
  • Bot detection is not performed in React Native — mobile apps aren't crawled by web bots. The $userAgent attribute is accepted for parity but never auto-detected.
  • Fail open: if the client fails to initialize, every useFlag returns { enabled: false, variationKey: 'off' } and your app continues to render.

Requirements

  • React 18+
  • React Native 0.74+ (Expo SDK 51+)
  • Optional: @react-native-async-storage/async-storage for persistConfig

License

MIT