Skip to content

feat: add experimental SPM support - #955

Open
krozniata wants to merge 3 commits into
mainfrom
fet/experimental-spm-support
Open

krozniata wants to merge 3 commits into
mainfrom
fet/experimental-spm-support

Conversation

@krozniata

@krozniata krozniata commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Summary

This PR adds an experimental --experimental-spm flag that generates a Package.swift for Turbo Modules and Fabric views, targeting React Native 0.87's Swift Package Manager support

When passing flag it adds Package.swift file to library to support SPM and also disables automatic pod installation in example app

Also adds CI workflows that create such library and build app that uses SPM package ('npx react-native spm --deintegrate`)

image

Test plan

  1. Generate example lib
  2. connect to RN87 app e.g. via tarball
  3. Run npx react-native spm --deintegrate
  4. Build app

Also CI GREEN

@krozniata
krozniata marked this pull request as ready for review October 6, 2026 07:01
@satya164

satya164 commented Oct 6, 2026

Copy link
Copy Markdown
Member

@krozniata regarding nitro, can you reach out to @mrousavy on slack to see what's the plan?

@mrousavy

mrousavy commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

I'm already actively working on it :)

This branch has not been deployed

No deployments
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