Skip to content

Conversation

@yugisu-flux
Copy link

@yugisu-flux yugisu-flux commented Jan 5, 2026

Motivation

The main motivation for these changes is the Datadog Feature Flags SDK fanout initiative.

Related ticket: https://datadoghq.atlassian.net/browse/FFL-900

What does this PR do?

This PR adds Datadog Feature Flags to the Datadog React Native SDK. DdFlags are added to the SDK core, and a public-facing interface of this feature is exported from the @datadog/mobile-react-native-openfeature package in a form of an OpenFeature-compatible provider.

This new RN SDK brings full feature parity with native iOS and Android implementations of Flags, wrapping them with a JS layer aiming to be as thin as possible.

This PR is a collective result of the following PRs. For more details on individual implementation steps, please consult with them:

Additional Notes

This SDK has been implemented following the requirements stated in internal documents:

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)
  • If this PR is auto-generated, please make sure also to manually update the code related to the change

@yugisu-flux yugisu-flux changed the base branch from feature/v3 to develop January 26, 2026 10:11
s.dependency 'DatadogTrace', '3.4.0'
s.dependency 'DatadogRUM', '3.4.0'
s.dependency 'DatadogCrashReporting', '3.4.0'
s.dependency 'DatadogCore', '3.5.0'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Native Datadog SDKs are bumped to 3.5.0.

@yugisu-flux yugisu-flux marked this pull request as ready for review January 28, 2026 10:13
@yugisu-flux yugisu-flux requested review from a team as code owners January 28, 2026 10:13
Copy link
Contributor

@maycmlee maycmlee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some suggestions

@@ -0,0 +1,119 @@
# Datadog OpenFeature Provider for React Native

Use [OpenFeature][1] with [Datadog Feature Flags][2] to evaluate feature flags and send flag evaluation data to Datadog for monitoring analysis and experimentation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Use [OpenFeature][1] with [Datadog Feature Flags][2] to evaluate feature flags and send flag evaluation data to Datadog for monitoring analysis and experimentation.
Use [OpenFeature][1] with [Datadog Feature Flags][2] to evaluate feature flags and send evaluation data to Datadog to monitor analysis and experimentation.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I addressed your feedback in #1113 (please check this commit: c286ddf) because I don't have push rights in this branch

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!


## Setup

**Note**: This package is an integration for the [OpenFeature React SDK][1]. Before using it, install and set up the core [`mobile-react-native`][3] SDK.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct?

Suggested change
**Note**: This package is an integration for the [OpenFeature React SDK][1]. Before using it, install and set up the core [`mobile-react-native`][3] SDK.
**Note**: This package is an integration for the [OpenFeature React SDK][1]. Before using the integration, install and set up the core [`mobile-react-native`][3] SDK.


Use the example code snippet below to initialize the Datadog SDK, enable the Feature Flags feature, and set up the OpenFeature provider.

After completing this setup, your app should be ready for flag evaluation with OpenFeature.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this should be moved to after running the code snippet with the following suggested edits:

Suggested change
After completing this setup, your app should be ready for flag evaluation with OpenFeature.
After completing this setup, your app is ready for flag evaluation with OpenFeature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants