Skip to content

[RN] Exposing feature flags APIs#196

Merged
FranAguilera merged 1 commit intomainfrom
franjam/expose-feature-flags-apis
Jan 12, 2026
Merged

[RN] Exposing feature flags APIs#196
FranAguilera merged 1 commit intomainfrom
franjam/expose-feature-flags-apis

Conversation

@FranAguilera
Copy link
Copy Markdown
Contributor

@FranAguilera FranAguilera commented Jan 12, 2026

What

Resolves BIT-7150

Exposing feature flag APIs

Verification

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR exposes feature flag APIs in the React Native SDK, allowing developers to track when users are exposed to specific feature flag variants.

Changes:

  • Added setFeatureFlagExposure function to support both string and boolean variants
  • Implemented native module bindings for iOS (Swift/Objective-C) and Android (Kotlin)
  • Updated documentation and examples demonstrating feature flag usage

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/react-native/src/index.tsx Exports the new setFeatureFlagExposure function with type branching for boolean vs string variants
packages/react-native/src/NativeBdReactNative.ts Defines native module interface with separate methods for string and boolean variants
packages/react-native/ios/Logger.swift Implements Swift wrapper methods for feature flag exposure
packages/react-native/ios/BdReactNative.mm Exports React Native methods for iOS feature flag tracking
packages/react-native/android/src/oldarch/BdReactNativeSpec.kt Adds abstract method declarations for Android old architecture
packages/react-native/android/src/main/java/com/bdreactnative/BdReactNativeModule.kt Implements feature flag methods for Android
packages/react-native/README.md Documents feature flag tracking API with usage examples
examples/expo/src/app/App.tsx Demonstrates feature flag API usage with example handlers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@FranAguilera FranAguilera merged commit 04c262b into main Jan 12, 2026
5 checks passed
@FranAguilera FranAguilera deleted the franjam/expose-feature-flags-apis branch January 12, 2026 11:29
@github-actions github-actions bot locked and limited conversation to collaborators Jan 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants