Skip to content

chore: Add FDv2 example project for react-native.#1277

Merged
kinyoklion merged 13 commits into
mainfrom
rlamb/react-native-fdv2-example
Apr 21, 2026
Merged

chore: Add FDv2 example project for react-native.#1277
kinyoklion merged 13 commits into
mainfrom
rlamb/react-native-fdv2-example

Conversation

@kinyoklion

@kinyoklion kinyoklion commented Apr 14, 2026

Copy link
Copy Markdown
Member

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-fdv2 Expo app workspace that demonstrates the experimental FDv2 dataSystem opt-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 ensure release-please keeps the example’s @launchdarkly/react-native-client-sdk dependency 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.


Open in Devin Review

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.
@kinyoklion kinyoklion changed the title Rlamb/react native fdv2 example chore: Add FDv2 example project for react-native. Apr 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25623 bytes
Compressed size limit: 29000
Uncompressed size: 125843 bytes

@kinyoklion kinyoklion marked this pull request as ready for review April 14, 2026 22:55
@kinyoklion kinyoklion requested a review from a team as a code owner April 14, 2026 22:55
@github-actions

github-actions Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179383 bytes
Compressed size limit: 200000
Uncompressed size: 830325 bytes

@github-actions

github-actions Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31721 bytes
Compressed size limit: 34000
Uncompressed size: 113136 bytes

@github-actions

github-actions Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 37607 bytes
Compressed size limit: 38000
Uncompressed size: 207149 bytes

cursor[bot]

This comment was marked as resolved.

cursor[bot]

This comment was marked as resolved.

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.
Comment thread packages/sdk/react-native/example-fdv2/.env.example Outdated
Comment thread packages/sdk/react-native/example-fdv2/src/welcome.tsx Outdated
Rename MOBILE_KEY to LAUNCHDARKLY_MOBILE_KEY and import
FDv2ConnectionMode directly from the react-native-client-sdk.
@kinyoklion kinyoklion requested a review from joker23 April 21, 2026 19:41
devin-ai-integration[bot]

This comment was marked as resolved.

@kinyoklion kinyoklion merged commit 1bb13eb into main Apr 21, 2026
46 checks passed
@kinyoklion kinyoklion deleted the rlamb/react-native-fdv2-example branch April 21, 2026 21:12
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.

2 participants