v0.87.1
📦 react-nativeView on GitHub →
✨ 1 features🐛 12 fixes🔧 5 symbols
Summary
This release includes several bug fixes and improvements for iOS-specific features, particularly around SwiftPM integration and Animated API typing. It also updates the Hermes engine version.
Migration Steps
- Ensure that your `react-native.config.js` file correctly defines `spm.name` if you are using SwiftPM.
- Remove the unused `spm.modules.publicHeaderFiles` field from the `spm` section of your `react-native.config.js` if present.
✨ New Features
- Added hard fail and clear error message when an autolinking plugin host is referenced as a dependency in SwiftPM for iOS.
🐛 Bug Fixes
- Animated.Value.addListener() now correctly types its callback payload as {value: number} instead of any.
- Animated.event() is now typed as an event handler instead of any.
- Cocoapods: Header search paths containing spaces in add_rn_third_party_dependencies now correctly retain quotes.
- SwiftPM: Colliding or invalid spm.modules names are now rejected instead of being silently dropped from the build.
- SwiftPM: Naming collisions in Swift manifests are now resolved.
- SwiftPM: The spm.name field is now correctly read from react-native.config.js when scaffolding the Swift manifest.
- SwiftPM: The unused field spm.modules.publicHeaderFiles has been removed from the spm section of react-native.config.js.
- SwiftPM: The SwiftPM pipeline now correctly reads react-native.config.js with default exports.
- SwiftPM: Constants have been created for internal SwiftPM packages to prevent collisions.
- SwiftPM: SWIFT_ACTIVE_COMPILATION_CONDITIONS is now set to DEBUG when injecting SPM.
- SwiftPM: Recovered React-Core-prebuilt configuration swaps that were interrupted before the marker was updated.
- SwiftPM: Fixed Hermes runtime/compiler version mismatch causing "Wrong bytecode version" crashes in SwiftPM Release builds.