rozenite-growthbook-plugin
v0.6.0
Published
Rozenite DevTools plugin for GrowthBook feature flags and experiments
Maintainers
Readme
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.
Installation
pnpm add rozenite-growthbook-pluginYou'll also need these peer dependencies:
@growthbook/growthbook(>= 1.0.0)reactreact-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.
License
MIT
