Skip to content

valeriobelli/rozenite-growthbook-plugin

Repository files navigation

rozenite-growthbook-plugin

A Rozenite DevTools plugin for debugging GrowthBook feature flags and experiments in React Native apps.

Inspect features, override values, force experiment variations, and edit user attributes; all from the Rozenite DevTools panel.

Demo

Installation

pnpm add rozenite-growthbook-plugin

You'll also need these peer dependencies:

  • @growthbook/growthbook (>= 1.0.0)
  • react
  • react-native

Usage

Call the useGrowthBookDevTools hook somewhere inside your GrowthBookProvider:

import { useGrowthBook } from '@growthbook/growthbook-react'
import { useGrowthBookDevTools } from 'rozenite-growthbook-plugin'

function DevToolsBridge() {
  const gb = useGrowthBook()

  useGrowthBookDevTools(gb)

  return null
}

The hook only runs in development builds. It's a no-op in production.

Development

git clone https://github.com/valeriobelli/rozenite-growthbook-plugin.git
cd rozenite-growthbook-plugin
pnpm install

Look into the package.json files to understand the packages interface.

Contributing

Contributions are welcome. Bug fixes, new features, docs improvements.

Use conventional commits for your commit messages (enforced by commitlint)

If you're planning something big, open an issue first so we can discuss it.

License

MIT

About

A Rozenite plugin to debug and interact with GrowthBook in React Native applications

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors