You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5184c04
Browse filesBrowse the repository at this point in the historyBrowse files
Format spm-scripts.md after applying review suggestions
The GitHub suggestion commits reflowed prose past the print width, padded a
table cell, and left trailing whitespace on a heading — prettier --list-different
flags the file, which is what the lint job runs.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|`name`| The target's name and its header prefix. A valid Swift identifier, not [reserved](#names-react-native-reserves), and not already taken by another module or an autolinked library. |
368
369
|`path`| The module's directory, relative to the app root. |
369
-
|`exclude`| Paths inside `path` to keep out of the target, like a podspec's `exclude_files`. It also supports directories with a trailing `/`. |
370
+
|`exclude`| Paths inside `path` to keep out of the target, like a podspec's `exclude_files`. It also supports directories with a trailing `/`. |
370
371
|`sources`| Glob allowlist replacing automatic discovery, like a podspec's `source_files`. Without it, every `.h/.m/.mm/.c/.cpp/.swift` file under `path` is compiled, minus `exclude` and the directories the autolinker always skips (`android/`, `test/`, `tests/`, `__tests__/`, `__mocks__/`, `jest/`, `node_modules/`). |
371
372
372
373
Names must be unique because wrapper directories are keyed by name: two entries
373
374
resolving to one name — or an entry matching an autolinked library — would share
374
375
a directory, and the losing module would silently not be built. So a clash fails
375
376
the build with a rename instruction instead.
376
377
377
-
### App Modules vs Libraries
378
+
### App Modules vs Libraries
378
379
379
380
`spm.modules` is read from the app's own `react-native.config.js` only — entries
380
381
in a dependency's config are ignored, so a library cannot declare its native
0 commit comments