Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/platforms/react-native/feature-flags/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: Set Up Feature Flags
sidebar_title: Feature Flags
sidebar_order: 7000
description: Generic Feature Flags Integration.
---

## Prerequisites

- [Sentry SDK](/platforms/react-native/#configure) version `7.0.0`.

## 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.
Loading