React Native feature flags installation
Install the PostHog React Native library and its dependencies: PostHog is most easily used via the Once installed, PostHog will automatically start capturing events. You can also manually send events using the PostHog provides hooks to make it easy to use feature flags in your React Native app. Use For multivariate flags, use Experiments run on top of our feature flags. Once you've implemented the flag in your code, you run an experiment by creating a new experiment in the PostHog dashboard.Install the package
RequiredConfigure PostHog
RequiredPostHogProvider component. Wrap your app with the provider:Send events
RecommendedusePostHog hook:Use feature flags
RequireduseFeatureFlagEnabled for boolean flags:Multivariate flags
getFeatureFlag:Running experiments
Optional