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

@configdirector/react-native-sdk

v1.10.1

Published

React Native client SDK for ConfigDirector. ConfigDirector is a remote configuration and feature flag service.

Readme

ConfigDirector React Native SDK

npm

React Native SDK for ConfigDirector, remote config and feature flags with typed values, JSON Schema validation, and safe renames of live flags. Start free, no card required.

Install

npm install --save @configdirector/react-native-sdk

Install @react-native-async-storage/async-storage as well, so the SDK recognizes the app install across app starts and keeps the last values it received on the device. For a context without an id, ConfigDirector derives an identifier from an ID the SDK stores for the install, so the context keeps that identifier, and counts as one monthly active user, however often the app is opened. The last values are served on the next app start of the same context until live values arrive, so an app opened without a network shows them instead of the in-code default values. It is an optional peer dependency and works in Expo Go. Without it, every app start looks like a new install, nothing is kept on the device, and the SDK logs a warning.

npm install --save @react-native-async-storage/async-storage
# or in an Expo project
npx expo install @react-native-async-storage/async-storage

Retrieve a value

import { Text } from "react-native";
import { ConfigDirectorProvider, useConfigValue } from "@configdirector/react-native-sdk";

export default function App() {
  return (
    <ConfigDirectorProvider sdkKey="YOUR-CLIENT-SDK-KEY" appName="MyApp" appVersion="1.0.0">
      <Home />
    </ConfigDirectorProvider>
  );
}

function Home() {
  const { value: darkMode } = useConfigValue("dark-mode", false);
  return <Text>dark-mode: {String(darkMode)}</Text>;
}

Full details are in the official documentation.

Test your code

@configdirector/react-native-sdk/testing creates a real client connected to an in-memory server that your test controls. Render the production ConfigDirectorProvider with its client prop, or install the test client for components that render their own provider, such as App.

import { act, render } from "@testing-library/react-native";
import { ConfigDirectorProvider } from "@configdirector/react-native-sdk";
import { createTestClient, installTestClient } from "@configdirector/react-native-sdk/testing";

const testClient = createTestClient({ values: { "dark-mode": true } });

const view = await render(
  <ConfigDirectorProvider client={testClient.client}>
    <Home />
  </ConfigDirectorProvider>,
);
await view.findByText("dark-mode: true");

await act(() => testClient.setValue("dark-mode", false));
view.getByText("dark-mode: false");

const uninstall = installTestClient(testClient);
await render(<App />);
uninstall();

The provider renders its children before initialization completes, so the first assertion uses findBy…. Wrap setValue, removeValue, and replaceValues in act(). React Native Testing Library 14 made render, fireEvent, and act asynchronous, so the example awaits them; the same code works with version 13. The test client also holds or fails initialize and updateContext, and records every context in contextUpdates. A provider never disposes a client it was given, removes its handlers and its AppState and NetInfo subscriptions when it unmounts, and does not initialize a client that is ready or initializing. Under the React Native Jest preset, AppState.addEventListener never calls its listener, so the provider never pauses on its own; a test that calls the listener runs the production pause and resume against the test client. The package and its dependency @noble/hashes are ESM, and the package's files are .mjs files, which the jest-expo and @react-native/jest-preset presets do not transform, so a Jest setup must let transformIgnorePatterns transform both packages and add a transform entry for .mjs files; the documentation shows the configuration for both presets. jest-expo requires @react-native/jest-preset as a peer dependency, so install it in either case. The test client never touches AsyncStorage. A test that builds a real client instead, through createClient or a provider given an sdkKey, logs the warning that AsyncStorage is missing and connects as a new install under either preset; add @babel/plugin-transform-dynamic-import to the Babel test environment for that client to use the AsyncStorage Jest mock instead.

Documentation

Refer to the official documentation for the React Native SDK.

There is also a quickstart guide for ConfigDirector and any of our SDKs.

Getting Help