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

@featuredeck/react-native

v0.2.1

Published

Beautiful in-app feedback SDK for React Native - feature requests, upvotes, comments & roadmap

Readme



Features

  • Feature Requests — Let users browse, submit, and upvote feature ideas
  • Roadmap — Show planned, in-progress, and completed items
  • Optimistic UI — Instant feedback on votes and submissions
  • Theming — Fully customizable colors, dark mode support
  • Zero config UI — Drop-in full-screen modal with two tabs
  • Pull-to-refresh & infinite scroll built in

Requirements

  • React Native 0.68+
  • React 17+
  • Expo supported
  • iOS and Android

Installation

# npm
npm install @featuredeck/react-native

# yarn
yarn add @featuredeck/react-native

# pnpm
pnpm add @featuredeck/react-native

Peer Dependency

FeatureDeck uses zustand for internal state management. If your project doesn't already include it:

npm install zustand

Quick Start

1. Initialize the SDK

Call init in your app entry point (e.g. App.tsx). Get your API key from the FeatureDeck dashboard.

import { FeatureDeck } from '@featuredeck/react-native';

await FeatureDeck.init({
  apiKey: 'your-api-key',
});

await FeatureDeck.setUser({
  externalUserId: 'user-123',
  username: 'johndoe',
  email: '[email protected]',
});

2. Wrap Your App with the Provider

Add FeatureDeckProvider at your app root. This renders the feedback board modal.

import { FeatureDeckProvider } from '@featuredeck/react-native';

export default function App() {
  return (
    <FeatureDeckProvider>
      {/* Your app content */}
    </FeatureDeckProvider>
  );
}

3. Open the Feature Board

Trigger the board from anywhere — a button, menu item, or settings screen.

import { FeatureDeck } from '@featuredeck/react-native';

function SettingsScreen() {
  return (
    <View>
      <TouchableOpacity onPress={() => FeatureDeck.openFeatureBoard()}>
        <Text>Feature Requests</Text>
      </TouchableOpacity>
    </View>
  );
}

What's Included

The SDK opens a full-screen modal with two tabs:

| Features Tab | Roadmap Tab | |---|---| | Browse all feature requests | View planned, in-progress & completed items | | Upvote features with optimistic UI | Grouped by status with clear labels | | Submit new feature requests | Pull-to-refresh for latest updates | | Delete features you created | | | Pull-to-refresh & infinite scroll | |

User Management

Users must be identified to submit features, vote, and delete their own requests.

// When user logs in
await FeatureDeck.setUser({
  externalUserId: 'user-123',  // Required — your app's user ID
  username: 'johndoe',         // Optional
  email: '[email protected]',   // Optional
});

// When user logs out
await FeatureDeck.setUser(null);

Customization

Theme

Customize colors to match your app's design. Pass a theme during initialization or update it later.

await FeatureDeck.init({
  apiKey: 'your-api-key',
  theme: {
    colors: {
      primary: '#8B5CF6',
      background: '#FFFFFF',
      text: '#1F2937',
    },
    isDark: false,
  },
});

// Update theme at runtime
FeatureDeck.setTheme({
  colors: {
    primary: '#10B981',
  },
  isDark: true,
});

// Quick dark/light mode toggles
FeatureDeck.enableDarkMode();
FeatureDeck.enableLightMode();

Theme Utilities

Create themes from a single color or merge with defaults.

import {
  createThemeFromColor,
  mergeTheme,
  lightTheme,
  darkTheme,
} from '@featuredeck/react-native';

const customTheme = createThemeFromColor('#E85D04', false);
const merged = mergeTheme(lightTheme, customTheme);

await FeatureDeck.init({
  apiKey: 'your-api-key',
  theme: merged,
});

API Reference

FeatureDeck.init(config)

Initialize the SDK. Must be called before any other method.

FeatureDeck.init(config: FeatureDeckConfig): Promise<void>

interface FeatureDeckConfig {
  apiKey: string;
  theme?: Partial<Theme>;
}

FeatureDeck.setUser(user)

Identify the current end user. Required for voting, creating, and deleting features.

FeatureDeck.setUser(user: UserInput | null): Promise<void>

interface UserInput {
  externalUserId: string;  // Required
  username?: string;
  email?: string;
}

FeatureDeck.openFeatureBoard()

Open the feature board modal with Features and Roadmap tabs.

FeatureDeck.openFeatureBoard(): void

FeatureDeck.close()

Programmatically close the modal.

FeatureDeck.close(): void

FeatureDeck.setTheme(theme)

Update the theme at runtime.

FeatureDeck.setTheme(theme: Partial<Theme>): void
FeatureDeck.enableDarkMode(): void
FeatureDeck.enableLightMode(): void

Utility Methods

FeatureDeck.isReady(): boolean     // Has init() completed?
FeatureDeck.isVisible(): boolean   // Is the modal currently open?
FeatureDeck.getUser(): User | null // Get the current user

Full Example

import React, { useEffect } from 'react';
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
import {
  FeatureDeck,
  FeatureDeckProvider,
} from '@featuredeck/react-native';

async function bootstrap() {
  await FeatureDeck.init({ apiKey: 'your-api-key' });

  await FeatureDeck.setUser({
    externalUserId: 'user-123',
    username: 'johndoe',
    email: '[email protected]',
  });
}

export default function App() {
  useEffect(() => {
    bootstrap();
  }, []);

  return (
    <FeatureDeckProvider>
      <View style={styles.container}>
        <Text style={styles.title}>My App</Text>
        <TouchableOpacity
          style={styles.button}
          onPress={() => FeatureDeck.openFeatureBoard()}
        >
          <Text style={styles.buttonText}>Feature Requests</Text>
        </TouchableOpacity>
      </View>
    </FeatureDeckProvider>
  );
}

const styles = StyleSheet.create({
  container: { flex: 1, justifyContent: 'center', alignItems: 'center' },
  title: { fontSize: 24, fontWeight: '700', marginBottom: 24 },
  button: {
    backgroundColor: '#111',
    paddingVertical: 14,
    paddingHorizontal: 28,
    borderRadius: 10,
  },
  buttonText: { color: '#fff', fontSize: 16, fontWeight: '600' },
});

Getting Your API Key

  1. Sign up and create a project at featuredeck.in
  2. Navigate to your project settings
  3. Copy the API key and pass it to FeatureDeck.init()

Need Help?

License

MIT