chore: Add FDv2 example project for react-native.#1277
Merged
Conversation
The public API shows setConnectionMode(mode: ConnectionMode) and getConnectionMode(): ConnectionMode. The FDv2-specific overloads accepting FDv2ConnectionMode and undefined are stripped from declarations via @internal + stripInternal.
Contributor
|
@launchdarkly/js-sdk-common size report |
Contributor
|
@launchdarkly/browser size report |
Contributor
|
@launchdarkly/js-client-sdk size report |
Contributor
|
@launchdarkly/js-client-sdk-common size report |
Examples must be copy-pasteable outside the monorepo, so the react-native-client-sdk dep must be a real version instead of workspace:^. Add an extra-files entry so the pinned version is auto-bumped on release. Also add private: true to the example package.json to prevent accidental npm publish.
joker23
reviewed
Apr 21, 2026
Rename MOBILE_KEY to LAUNCHDARKLY_MOBILE_KEY and import FDv2ConnectionMode directly from the react-native-client-sdk.
joker23
approved these changes
Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Low Risk
Low risk: changes are isolated to adding a new React Native example app and updating workspace/release tooling references, without modifying SDK runtime behavior.
Overview
Adds a new
packages/sdk/react-native/example-fdv2Expo app workspace that demonstrates the experimental FDv2dataSystemopt-in, context identification, boolean flag evaluation, and manual connection-mode switching via internal APIs.Updates monorepo configuration to include the new workspace (
package.json), exclude it from the React Native SDK TypeScript build (packages/sdk/react-native/tsconfig.json), and ensurerelease-pleasekeeps the example’s@launchdarkly/react-native-client-sdkdependency in sync (release-please-config.json).Reviewed by Cursor Bugbot for commit c895665. Bugbot is set up for automated code reviews on this repo. Configure here.