---
title: "Feature Flags"
description: "Generic Feature Flags Integration."
url: https://docs.sentry.io/platforms/react-native/feature-flags/
---

# Set Up Feature Flags | Sentry for React Native

## [Prerequisites](https://docs.sentry.io/platforms/react-native/feature-flags.md#prerequisites)

* [Sentry SDK](https://docs.sentry.io/platforms/react-native.md#configure) version `7.0.0`.

## [Usage](https://docs.sentry.io/platforms/react-native/feature-flags.md#usage)

The Feature Flags integration allows you to manually track feature flag evaluations through an API. These evaluations are held in memory and sent to Sentry on error and transaction events. **At the moment, we only support boolean flag evaluations.**

```javascript
import * as Sentry from "@sentry/react-native";

const flagsIntegration = Sentry.featureFlagsIntegration();
flagsIntegration.addFeatureFlag("feature_flag_a", true);

Sentry.init({
  dsn: "___PUBLIC_DSN___",
  integrations: [flagsIntegration],
});
```

Calling this function multiple times with the same flag name will override the previous value.
