Skip to content

feat(unified-react-native): add unified-react-native support - #1945

Draft
Mercy811 wants to merge 5 commits into
codex/sdkrn-60-experiment-pluginfrom
codex/sdkrn-61-unified-rn
Draft

feat(unified-react-native): add unified-react-native support#1945
Mercy811 wants to merge 5 commits into
codex/sdkrn-60-experiment-pluginfrom
codex/sdkrn-61-unified-rn

Conversation

@Mercy811

@Mercy811 Mercy811 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add the new @amplitude/unified-react-native beta package.
  • Initialize Analytics, Experiment, Session Replay, and Guides and Surveys through initAll.
  • Share serverZone, instanceName, and translated logLevel defaults while allowing blade-specific overrides.
  • Expose Experiment, Session Replay, and Guides and Surveys accessors alongside the React Native Analytics API.
  • Ship a React Native CLI autolinking preset so applications directly install only the unified package.
  • Add a bare React Native example that consumes the one-package preset and exercises every blade.
  • Add package documentation, build configuration, and full unit coverage.

Stacked on #1944, which provides @amplitude/plugin-experiment-react-native.

Testing

  • pnpm install --frozen-lockfile
  • Unified React Native build, typecheck, lint, and tests (18 tests, 100% coverage)
  • Unified example lint and typecheck
  • React Native CLI config resolves all five transitive native dependencies for iOS and Android
  • Android :app:generateAutolinkingPackageList
  • iOS pod install (five native modules plus Engagement and AsyncStorage codegen)
  • Production iOS Metro bundle
  • pnpm docs:check
  • pnpm lint
  • pnpm lint:deps
  • pnpm test (30 projects)
  • pnpm build — the new package and its dependencies build successfully, but the repository-wide command stalls in the unrelated @amplitude/segment-session-replay-plugin Rollup task
  • pnpm test:examples — the base branch references a missing root jest.setup.examples.js

Checklist

  • PR title follows the conventional commit format
  • Breaking change: No

@linear-code

linear-code Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

SDKRN-61

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

size-limit report 📦

Path Size
packages/analytics-browser/lib/scripts/amplitude-min.js.gz 61.58 KB (+0.07% 🔺)
packages/session-replay-browser/lib/scripts/session-replay-browser-min.js.gz 134.97 KB (0%)
packages/unified/lib/scripts/amplitude-min.umd.js.gz 215.62 KB (+0.02% 🔺)
@amplitude/element-selector (gzipped esm) 2.67 KB (0%)

@Mercy811
Mercy811 force-pushed the codex/sdkrn-61-unified-rn branch from b7e2fb3 to 01c6537 Compare August 20, 2026 19:07
@Mercy811
Mercy811 force-pushed the codex/sdkrn-61-unified-rn branch from 01c6537 to 5f61309 Compare August 24, 2026 18:27
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.

1 participant