manager – Code Guilds https://codeguilds.com Tue, 10 Nov 2026 21:59:14 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 React Native 0.87 Arrives With Default Strict TypeScript, Experimental Swift Package Manager, and Major Toolchain Updates https://codeguilds.com/react-native-0-87-arrives-with-default-strict-typescript-experimental-swift-package-manager-and-major-toolchain-updates/ https://codeguilds.com/react-native-0-87-arrives-with-default-strict-typescript-experimental-swift-package-manager-and-major-toolchain-updates/#respond Tue, 10 Nov 2026 21:59:14 +0000 https://codeguilds.com/react-native-0-87-arrives-with-default-strict-typescript-experimental-swift-package-manager-and-major-toolchain-updates/ The React Native core team has officially announced the release of version 0.87, introducing significant foundational updates aimed at modernizing developer tooling, enforcing stricter typing ecosystems, and streamlining native dependency management across iOS and Android platforms. As the latest stable release, version 0.87 transitions the Strict TypeScript API to the default JavaScript interface, updates the Metro bundler to version 0.87, brings experimental Swift Package Manager (SwiftPM) support to iOS, and raises minimum toolchain requirements to Node.js 22, Android Gradle Plugin 9, and Kotlin 2.0+.

This release marks a pivotal step in the ongoing evolution of the cross-platform framework, balancing developer experience with modern architectural standards. With version 0.87 now occupying the latest stable position, support for older iterations—specifically version 0.84.x—officially concludes in accordance with the project’s support lifecycle policy.

Enforcing Type Safety: Strict TypeScript API Becomes the Default

The most visible change for application developers in React Native 0.87 is the transition of the framework’s public JavaScript API to the Strict TypeScript API. Originally introduced as an opt-in preview in version 0.80 alongside the deprecation of deep imports, the strict configuration is now standard for all newly initialized and upgraded projects.

This ecosystem-wide transition introduces deliberate breaking changes across the API surface, designed to eliminate ambiguous typing and drastically improve autocompletion, inline documentation, and error detection within integrated development environments (IDEs). For instance, hovering over core components like TextInput now reveals rich symbol documentation and comprehensive type information, replacing the uninformative hover states of legacy types.

To assist developers in navigating the shift, the core team collaborated closely with community partners to finalize root exports and resolve compatibility issues with widely used third-party libraries. While many applications are expected to upgrade with minimal friction, a dedicated migration guide and automated ESLint fixers are available. Furthermore, agent-driven workflows can leverage the specialized /migrate-to-strict-api skill to streamline large-scale codebase transformations.

Recognizing that complex enterprise applications may require additional time to adapt, the core team has implemented a temporary opt-out mechanism. Developers can revert to legacy typing by incorporating the "react-native-legacy-deep-imports" custom condition within their tsconfig.json file. However, this bridge is strictly temporary and will be deprecated entirely in the subsequent 0.88 release, after which legacy types will be permanently removed.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

Streamlining iOS Infrastructure with Experimental Swift Package Manager Support

On the Apple ecosystem front, React Native 0.87 introduces experimental support for the Swift Package Manager (SwiftPM) as an alternative to CocoaPods. Designed to be entirely opt-in and additive, the new integration path consumes the identical prebuilt XCFrameworks published by the framework, leaving CocoaPods fully functional as the default standard.

Historically, iOS dependency management in React Native required Ruby, Bundler, and CocoaPods configurations. The SwiftPM integration simplifies this pipeline by relying exclusively on Xcode. Developers can transition an existing workspace by executing a single command—npx react-native spm --deintegrate—which non-destructively injects Swift package references directly into the existing .xcodeproj file without altering project signing, capabilities, or build phases. Reversing the operation is equally straightforward via the npx react-native spm deinit command.

A notable operational benefit of the SwiftPM implementation is the elimination of repetitive post-installation steps. Unlike traditional CocoaPods workflows that necessitate running pod install following every modification to native dependencies, the SwiftPM integration automatically detects changes and executes autolinking dynamically during the standard build process.

To achieve seamless compatibility with SwiftPM’s stringent requirements regarding XCFramework structures and header locations, the core team restructured the distribution of React Native’s precompiled binaries. This restructuring includes the introduction of dedicated headers-only frameworks, standardizing search path mechanics and assigning every namespace a unique physical location. While internal header content remains byte-identical to previous versions, developers utilizing bare-form angle includes must update their imports to include explicit namespaces, transforming statements such as #import <RCTAppDelegate.h> into #import <React/RCTAppDelegate.h>.

Elevating Android Builds Through Android Gradle Plugin 9

For Android developers, React Native 0.87 delivers foundational compatibility with the Android Gradle Plugin (AGP) version 9. As a major release introducing substantial API and Gradle build alterations, AGP 9 adoption requires specific configuration adjustments to maintain stability during the transitional phase.

To ensure a smooth upgrade path, the core team recommends explicitly opting out of built-in Kotlin and the new Domain-Specific Language (DSL) behavior introduced with AGP 9. Developers can implement this by appending specific flags—android.builtInKotlin=false and android.newDsl=false—to their android/gradle.properties files. These temporary opt-outs are projected to phase out in upcoming AGP 10 releases as the broader Android ecosystem finalizes its adoption.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

Performance Enhancements and Toolchain Modernization

Accompanying these architectural shifts is an upgrade to the Metro JavaScript bundler, moving from version 0.84 to 0.87. This iteration focuses on performance optimizations, reduced memory overhead, and faster incremental build times, aligning with the framework’s broader objective of delivering a leaner development loop.

Concurrently, the minimum toolchain requirements have been elevated to reflect modern software standards. React Native 0.87 officially mandates Node.js 22, Android Gradle Plugin 9, and Kotlin 2.0 or higher. These elevated baselines allow the core maintainers to leverage modern language features, enhance security postures, and remove legacy compatibility layers that previously contributed to framework bloat.

Community Collaboration and Upgrade Pathways

The release of React Native 0.87 is the collaborative product of 265 distinct commits contributed by 74 community members, reflecting the active engagement of the global open-source ecosystem.

For developers preparing to transition existing codebases, the official React Native Upgrade Helper remains the primary resource for visualizing code differences between versions. New project initialization can be executed via the updated command line interface using npx @react-native-community/cli@latest init MyProject --version latest, while projects within the Expo ecosystem can anticipate integration via upcoming expo@canary releases.

As React Native continues to refine its underlying architecture across both mobile operating systems, version 0.87 establishes a more robust, type-safe, and natively aligned foundation for cross-platform application development.

]]>
https://codeguilds.com/react-native-0-87-arrives-with-default-strict-typescript-experimental-swift-package-manager-and-major-toolchain-updates/feed/ 0
React Native 0.87 Arrives with Strict TypeScript as Default and Experimental Swift Package Manager Support https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-as-default-and-experimental-swift-package-manager-support-2/ https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-as-default-and-experimental-swift-package-manager-support-2/#respond Mon, 02 Nov 2026 22:01:08 +0000 https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-as-default-and-experimental-swift-package-manager-support-2/ The cross-platform mobile development landscape shifted this week with the official release of React Native 0.87. This major update brings several foundational changes to how developers build applications for iOS and Android, headlined by the transition of the Strict TypeScript API into the default JavaScript interface. Alongside this modernization of type safety, the framework introduces a significant modernization of its underlying tooling, updating the Metro bundler to version 0.87, adding experimental support for the Swift Package Manager (SwiftPM) on Apple platforms, and raising minimum toolchain requirements across the board to include Node.js 22, Android Gradle Plugin (AGP) 9, and Kotlin 2.0 or higher.

The release marks the culmination of months of community collaboration, rigorous testing, and phased deprecations designed to align React Native with modern JavaScript and native ecosystem standards. According to project maintainers, version 0.87 features contributions from 74 developers who committed 265 code changes, reflecting the continued momentum of the open-source framework originally created by Meta.

Transitioning to Strict TypeScript as the Default

The most prominent developer-facing change in React Native 0.87 is the promotion of the Strict TypeScript API to the default JavaScript interface. Originally introduced as an opt-in preview in version 0.80 alongside the deprecation of deep imports, the Strict API is now mandatory for all new and upgraded projects unless developers explicitly opt out.

This ecosystem-wide transition carries intentional breaking changes across the API surface, designed to improve code reliability, autocomplete accuracy, and documentation visibility within Integrated Development Environments (IDEs). For instance, hovering over core components like TextInput under the new strict types now displays comprehensive inline documentation and type signatures—a stark contrast to legacy setups where symbols often lacked detailed metadata.

To ease the migration burden for development teams, the React Native core team has worked closely with community partners to finalize root exports and resolve compatibility issues with widely used third-party libraries. Furthermore, to assist with large-scale codebases, the ecosystem has introduced automated tooling, including an agent-driven upgrade skill available via /migrate-to-strict-api, which works in tandem with existing ESLint fixers to automate much of the refactoring process.

For organizations requiring more time to adapt their codebases, maintainers have provided a temporary escape hatch. Developers can maintain legacy deep imports through the 0.88 release cycle by adding the "react-native-legacy-deep-imports" custom condition to their tsconfig.json file. However, project maintainers have emphasized that this bridge is strictly temporary, with complete removal of the legacy types scheduled for the subsequent major release.

Modernizing iOS Integration with Experimental Swift Package Manager Support

On the iOS front, React Native 0.87 introduces experimental support for the Swift Package Manager (SwiftPM) as an alternative to CocoaPods. This represents a major architectural milestone for iOS builds, offering a native dependency management solution that eliminates the need for Ruby, Bundler, and CocoaPods entirely, relying solely on Xcode.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

The SwiftPM integration is implemented as an additive, opt-in feature rather than a forced replacement. Developers can transition an existing or new project by running a single command (npx react-native spm --deintegrate), which injects Swift package references directly into the existing .xcodeproj file without disrupting user-defined code signing configurations, capabilities, or custom build phases. Reversing the operation is equally straightforward via a corresponding initialization command.

A key advantage of this new integration workflow is the elimination of repetitive build commands. Unlike CocoaPods, which typically requires developers to execute pod install whenever native dependencies change, the SwiftPM integration relies on project-level detection to automatically trigger autolinking during the standard build process.

To achieve seamless compatibility with SwiftPM—which enforces stricter validation rules regarding XCFramework structures and header paths than CocoaPods—the React Native core team re-engineered how precompiled binaries are distributed. This restructure introduced new header-only XCFrameworks designed to normalize search paths and ensure every namespace maintains a single physical home. Consequently, developers adopting the new packaging may need to update their Objective-C or C++ import statements from bare-form angle brackets (such as #import <RCTAppDelegate.h>) to their fully qualified namespace equivalents (such as #import <React/RCTAppDelegate.h>).

Android Toolchain Evolution and AGP 9 Support

Android developers also see substantial changes in version 0.87, which marks the framework’s inaugural support for the Android Gradle Plugin (AGP) 9. As a major release in the Android build ecosystem, AGP 9 introduces significant API adjustments and breaking build changes.

To ensure a smooth upgrade path and prevent immediate build regressions across existing applications, the React Native team recommends that developers temporarily opt out of AGP 9’s built-in Kotlin support and new DSL behavior. By appending specific flags (android.builtInKotlin=false and android.newDsl=false) to the android/gradle.properties file, teams can maintain build stability while the broader React Native community works toward full, native adoption of AGP 9 standards, an initiative tracked publicly under RFC #1006.

Alongside AGP 9 support, version 0.87 raises baseline requirements across the entire build toolchain. Minimum supported versions now officially stand at Node.js 22 and Kotlin 2.0+, reflecting a broader industry push toward modern runtimes and language features that offer superior performance, enhanced security patches, and advanced compiler optimizations.

Performance Enhancements via Metro 0.87

Under the hood, the Metro JavaScript bundler has been upgraded from version 0.84 to 0.87. This update brings incremental performance improvements to bundling speeds, reduced memory overhead during hot reloading, and better asset resolution handling. The leaner bundling pipeline is designed to mitigate the compilation bottlenecks often encountered in large-scale enterprise applications containing thousands of modules.

Background Context and Chronology of the Release Cycle

The release of React Native 0.87 follows a predictable cadence established by the React Native release working group, which aims to deliver frequent, predictable updates that progressively modernize the framework’s core architecture. Version 0.84, which served as the previous stable standard, has now officially transitioned to unsupported status in accordance with the project’s formal support lifecycle policy.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

The journey toward Strict TypeScript began in mid-2025 with version 0.80, which laid the groundwork by deprecating deep imports and introducing the preview types. Over the subsequent minor releases, feedback from major ecosystem stakeholders—including Expo, Shopify, and Microsoft—helped refine the type definitions and eliminate edge-case compilation errors.

Concurrently, the exploration of SwiftPM addresses long-standing developer pain points related to CocoaPods maintenance, Ruby environment management, and Xcode workspace synchronization issues that have historically complicated iOS onboarding for cross-platform developers.

Implications for the Cross-Platform Development Ecosystem

The enforcement of stricter type definitions and the elevation of minimum toolchain requirements signal a maturing ecosystem where developer ergonomics and build-time safety take precedence over backwards compatibility with legacy configurations.

While the transition to Strict TypeScript and AGP 9 may require engineering teams to allocate dedicated sprint time for refactoring and dependency audits, the long-term implications are overwhelmingly positive. Enhanced IDE autocomplete, fewer runtime type errors, and leaner build pipelines directly address developer productivity bottlenecks. Furthermore, the introduction of SwiftPM paves the way for a more streamlined, Ruby-free iOS build infrastructure that aligns more closely with native Apple development paradigms.

Upgrading and Availability

React Native 0.87 is available immediately as the latest stable release. Existing projects can plan their migration by utilizing the official React Native Upgrade Helper to identify targeted code changes, alongside documentation for addressing breaking changes and API removals.

For developers initiating new projects, initialization is supported via the updated command line interface (npx @react-native-community/cli@latest init MyProject --version latest). Meanwhile, users of the Expo ecosystem can expect React Native 0.87 integration to roll out through upcoming expo@canary and stable SDK release channels.

]]>
https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-as-default-and-experimental-swift-package-manager-support-2/feed/ 0
React Native 0.87 Arrives with Strict TypeScript by Default, Swift Package Manager Support, and Higher Toolchain Requirements https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-swift-package-manager-support-and-higher-toolchain-requirements/ https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-swift-package-manager-support-and-higher-toolchain-requirements/#respond Sat, 24 Oct 2026 22:59:53 +0000 https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-swift-package-manager-support-and-higher-toolchain-requirements/ The release of React Native 0.87 marks a significant milestone for the cross-platform framework, introducing the Strict TypeScript API as the default JavaScript environment alongside experimental support for the Swift Package Manager (SwiftPM) on iOS. This latest stable update also brings a major upgrade to Metro 0.87 and raises the foundational toolchain requirements for developers globally, phasing out support for older development environments. With 265 commits contributed by 74 developers, version 0.87 focuses heavily on type safety, modernization of native build pipelines, and ecosystem-wide alignment with contemporary mobile development standards.

Main Facts and Core Upgrades of Version 0.87

At the heart of the React Native 0.87 release is the transition of the framework’s public JavaScript API to the Strict TypeScript API. Originally introduced as an opt-in preview alongside the deprecation of deep imports in version 0.80, this strict typing system is now enabled by default for all new and upgraded projects. This ecosystem-wide shift introduces intentional breaking changes designed to clean up the API surface and provide developers with vastly improved tooling support, such as inline documentation and comprehensive type information visible upon hovering over components like TextInput.

To accommodate teams that require additional time to transition their codebases, the core maintainers have implemented a temporary opt-in bridge. Developers can revert to legacy types through version 0.88 by adding a custom condition ("react-native-legacy-deep-imports") to their tsconfig.json file. However, the legacy TypeScript types are scheduled for permanent removal in the subsequent release.

Concurrently, version 0.87 upgrades the Metro JavaScript bundler from version 0.84 to 0.87, bringing performance enhancements and a leaner execution footprint. On the mobile native side, the framework introduces experimental support for Swift Package Manager as an additive alternative to CocoaPods on iOS, alongside official support for the Android Gradle Plugin (AGP) version 9.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

Chronology and Development Background

The journey toward React Native 0.87 has been shaped by a multi-phase architectural modernization effort spearheaded by Meta and the broader React Native community. The foundation for strict typing was laid several versions prior, notably in version 0.80, where deep imports were deprecated to encourage cleaner module consumption and prepare the ecosystem for strict type definitions. Throughout subsequent point releases, maintainers collaborated closely with library authors and corporate partners to resolve compatibility bottlenecks and finalize root exports.

The introduction of Swift Package Manager support stems from long-standing developer feedback regarding the complexity and friction of maintaining Ruby-based dependency management via CocoaPods in complex iOS projects. By adopting SwiftPM—which consumes the prebuilt XCFrameworks already published by React Native—the core team aims to streamline iOS project setup, requiring only Xcode without external dependencies like Ruby or Bundler.

Similarly, the integration of AGP 9 addresses the fast-moving Android build ecosystem. Because AGP 9 introduces significant API and breaking changes, the React Native team has recommended specific temporary flags (android.builtInKotlin=false and android.newDsl=false) within gradle.properties files to ensure a stable transition path ahead of AGP 10.

Raised Toolchain Requirements and Breaking Changes

To support modern language features and performance optimizations, React Native 0.87 enforces stricter minimum toolchain requirements across the board. Developers must now upgrade their development environments to Node.js 22, Android Gradle Plugin 9, and Kotlin 2.0 or higher. Furthermore, version 0.84.x has officially transitioned to an unsupported status in accordance with the project’s formal support policy, making 0.87 the current baseline for enterprise and independent production applications.

The architectural changes required to support Swift Package Manager also necessitated a restructuring of how precompiled binaries are delivered. Because SwiftPM enforces stricter validation rules regarding XCFramework structures and header locations compared to CocoaPods, maintainers introduced dedicated header-only frameworks. While these files are byte-identical to their source pod counterparts, developers must update their native Objective-C/C++ imports from bare-form angle brackets (e.g., #import <RCTAppDelegate.h>) to namespace-qualified paths (e.g., #import <React/RCTAppDelegate.h>).

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

Broader Impact and Implications for the Ecosystem

The enforcement of the Strict TypeScript API and the adoption of modern build tools signal a maturing ecosystem focused on long-term maintainability, developer ergonomics, and build reliability. Type-safe component props and rich IDE tooltips drastically reduce runtime errors and accelerate onboarding for developers working on large-scale applications.

The experimental integration of Swift Package Manager represents a potential paradigm shift for iOS development within the React Native ecosystem. By eliminating the necessity of CocoaPods for compatible workflows, teams can look forward to simplified continuous integration (CI) pipelines, reduced dependency resolution overhead, and a closer alignment with native Apple ecosystem tooling.

For Android developers, navigating the AGP 9 upgrade path lays the groundwork for leveraging upcoming Android Studio features and performance improvements, though migration planning remains crucial for projects with heavily customized native build scripts.

Upgrade Paths and Community Adoption

Upgrading existing projects to React Native 0.87 can be facilitated using the official React Native Upgrade Helper, which outlines necessary code modifications between versions. For automated migrations, agent-driven workflows can leverage specialized community skills such as /migrate-to-strict-api alongside standard ESLint fixers to streamline the transition to strict typing. New project initialization can be executed via the updated command line interface using npx @react-native-community/cli@latest init MyProject --version latest, while Expo users can anticipate integration through upcoming expo@canary release cycles.

]]>
https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-swift-package-manager-support-and-higher-toolchain-requirements/feed/ 0
React Native 0.87 Arrives with Default Strict TypeScript, Swift Package Manager Support, and Higher Toolchain Baselines https://codeguilds.com/react-native-0-87-arrives-with-default-strict-typescript-swift-package-manager-support-and-higher-toolchain-baselines-2/ https://codeguilds.com/react-native-0-87-arrives-with-default-strict-typescript-swift-package-manager-support-and-higher-toolchain-baselines-2/#respond Mon, 28 Sep 2026 23:01:27 +0000 https://codeguilds.com/react-native-0-87-arrives-with-default-strict-typescript-swift-package-manager-support-and-higher-toolchain-baselines-2/ The cross-platform mobile development landscape shifted once again as the core development team officially announced the release of React Native 0.87. This major milestone version introduces several structural enhancements aimed at modernizing the framework’s internal architecture, improving developer experience, and tightening integration with native toolchains on both iOS and Android. Among the most notable updates are the transition of the Strict TypeScript API to the default JavaScript interface, an upgrade to Metro 0.87, experimental support for the Swift Package Manager (SwiftPM), and significant bumps to minimum toolchain requirements, including Node.js 22 and Kotlin 2.0+.

The rollout of version 0.87 follows a predictable release cadence that emphasizes stability, performance, and long-term ecosystem health. As mobile operating systems evolve and developer tooling advances, frameworks like React Native must continually adapt to leverage modern language features and build systems. Version 0.87 addresses technical debt while laying the groundwork for a more streamlined, predictable development lifecycle across platforms.

Main Facts and Core Upgrades

The headline feature of React Native 0.87 is the promotion of the Strict TypeScript API to the default JavaScript interface for all new and upgraded projects. Originally introduced as an opt-in preview in version 0.80 alongside the deprecation of deep imports, this strict typing model brings intentional breaking changes designed to enforce cleaner code and richer editor feedback. Developers hovering over components such as TextInput will now encounter comprehensive type information and doc comments directly within their integrated development environments (IDEs).

While the transition to the Strict TypeScript API is expected to require minor adjustments for existing codebases, the core team has provided dedicated migration documentation and an ESLint fixer. For development teams unable to migrate immediately, a temporary opt-in bridge remains available through React Native 0.88 via a custom condition ("react-native-legacy-deep-imports") in the project’s tsconfig.json file. However, legacy TypeScript types are scheduled for complete removal in the subsequent release.

Concurrently, the JavaScript bundler Metro has been updated from version 0.84 to 0.87, bringing performance optimization and enhanced bundling mechanics. This update aligns with the framework’s overarching goal of reducing build bottlenecks and accelerating iteration times for developers working on large-scale applications.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

Chronology and Background Context

The journey toward React Native 0.87 began months earlier with incremental previews and community consultations. The rollout of the Strict TypeScript API first took shape in version 0.80, where developers were given their initial opportunity to test the stricter definitions and adapt their libraries. Throughout subsequent iterations, the core maintainers collaborated closely with ecosystem partners and library maintainers to refine root exports and resolve incompatibilities.

The introduction of experimental Swift Package Manager (SwiftPM) support represents another historical shift for the framework’s iOS ecosystem. For years, CocoaPods has served as the undisputed standard for dependency management in iOS React Native projects. However, managing Ruby dependencies, Bundler, and complex Podfile configurations has occasionally presented friction points for developers. By introducing an additive, opt-in SwiftPM integration path that consumes prebuilt XCFrameworks, the team is exploring a future where Xcode alone suffices for native iOS project management.

Supporting Data and Technical Specifications

React Native 0.87 is built upon a substantially raised baseline of toolchain requirements, reflecting the rapid pace of advancement in the broader software engineering ecosystem. Developers upgrading to or initiating projects on version 0.87 must ensure their environments satisfy the following minimum specifications:

  • Node.js 22
  • Android Gradle Plugin (AGP) 9
  • Kotlin 2.0+

The inclusion of AGP 9 support is particularly significant for Android developers, as AGP 9.0 introduces substantial API and build behavior alterations. Because AGP 9 brings major changes to Gradle builds, the current recommendation for React Native 0.87 projects is to explicitly opt out of built-in Kotlin and the new DSL behavior by adding specific properties (android.builtInKotlin=false and android.newDsl=false) to the android/gradle.properties file. These temporary flags are expected to be phased out in future AGP releases as ecosystem adoption matures.

On the iOS side, adopting SwiftPM required a fundamental rethinking of how precompiled binaries are distributed. SwiftPM enforces stricter rules regarding XCFramework structure and header locations than CocoaPods. To satisfy these constraints, the framework now publishes dedicated header-only XCFrameworks. Consequently, developers must update bare-form angle includes in their native code—changing imports like #import <RCTAppDelegate.h> to the namespaced format #import <React/RCTAppDelegate.h>.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

Official Responses and Community Contributions

The release of React Native 0.87 was propelled by a massive collaborative effort. According to project metrics, the version incorporates 265 commits contributed by 74 distinct developers from across the global open-source community. The core team formally expressed gratitude to the community members whose dedication and significant contributions shaped the final build.

Community feedback has also driven specific tooling enhancements. For automated or agent-driven code migrations, specialized community skills such as /migrate-to-strict-api have been developed to streamline the transition process alongside standard ESLint automation. Furthermore, architectural proposals like RFC #0994 (detailing SwiftPM integration) and RFC #1006 (tracking ecosystem-wide AGP 9 adoption) continue to serve as transparent public forums for architectural debate and consensus-building.

Broader Impact and Implications

The release of React Native 0.87 carries profound implications for the mobile development community, signaling a decisive move toward stricter type safety and more modern build toolchains. By making the Strict TypeScript API the default, the framework is aligning itself with industry best practices seen in modern backend and frontend web development, where rigorous typing significantly reduces runtime errors and enhances maintainability.

Furthermore, the experimental introduction of Swift Package Manager hints at a future where iOS development within the React Native ecosystem is less reliant on Ruby-based toolchains, potentially lowering the barrier to entry for developers coming from native Swift backgrounds or web environments. While CocoaPods remains fully supported and remains the default for this release, the groundwork laid by SwiftPM support opens a viable path toward a faster, more streamlined Xcode-native workflow.

As version 0.87 takes its place as the latest stable release—thereby moving version 0.84.x into unsupported territory according to official support policies—development teams are encouraged to consult the React Native Upgrade Helper and review their project configurations. By embracing these modernizations, the React Native ecosystem continues to cement its position as a robust, enterprise-grade solution for cross-platform mobile application development.

]]>
https://codeguilds.com/react-native-0-87-arrives-with-default-strict-typescript-swift-package-manager-support-and-higher-toolchain-baselines-2/feed/ 0
React Native 0.87 Arrives with Strict TypeScript by Default, Swift Package Manager Support, and Higher Toolchain Baselines https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-swift-package-manager-support-and-higher-toolchain-baselines/ https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-swift-package-manager-support-and-higher-toolchain-baselines/#respond Sat, 26 Sep 2026 22:59:58 +0000 https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-swift-package-manager-support-and-higher-toolchain-baselines/ The cross-platform mobile development ecosystem has taken another significant step forward with the official release of React Native 0.87. This milestone update brings a series of foundational shifts designed to modernise the developer experience, enhance code reliability, and streamline native tooling configurations across both iOS and Android platforms. Chief among the changes in version 0.87 is the elevation of the Strict TypeScript API to the default JavaScript interface, alongside experimental integration for the Swift Package Manager (SwiftPM) and upgraded core toolchain baselines that require modern developer environments.

As mobile applications grow in complexity, the demand for robust type safety and performant build pipelines has intensified. React Native 0.87 directly addresses these concerns by altering defaults that have governed the framework for years. The release is the culmination of months of community collaboration, refinement, and testing, building upon foundations laid earlier in the 0.8x product lifecycle.

Main Facts and Core Updates

At the heart of React Native 0.87 are three primary engineering achievements: making the Strict TypeScript API the default, updating the Metro bundler to version 0.87, and introducing experimental Swift Package Manager support for Apple’s operating systems.

The transition of the Strict TypeScript API to the default setting marks an ecosystem-wide evolution. Originally introduced as an opt-in preview in version 0.80 alongside the deprecation of deep imports, the Strict API forces intentional breaking changes across the public JavaScript surface area to deliver superior type definitions. Developers working with core components such as TextInput will immediately notice enhanced documentation directly within their integrated development environments (IDEs) upon hovering over symbols. This improvement is powered by comprehensive doc comments embedded across the vast majority of library symbols, providing immediate glanceable context without requiring external documentation lookups.

To ease the friction of this transition, the React Native core team has collaborated closely with library maintainers and community partners to resolve incompatibilities. Furthermore, agent-driven workflows can leverage dedicated migration tooling, such as the /migrate-to-strict-api skill, which operates in tandem with existing ESLint fixers. Recognising that large enterprise codebases may require additional time to adapt, maintainers have provided a temporary opt-in bridge via a custom condition ("react-native-legacy-deep-imports") in tsconfig.json. This bridge is slated to remain supported through version 0.88 before legacy types are permanently removed in a subsequent release.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

Concurrently, the Metro bundler has been updated from version 0.84 to 0.87. This update introduces performance enhancements, faster incremental builds, and a leaner runtime profile designed to scale efficiently with large-scale commercial codebases.

Chronology and Background Context

The journey toward React Native 0.87 reflects a methodical roadmap aimed at purging technical debt and aligning the framework with modern native platform standards. The foundational work began with the 0.80 release cycle in mid-2025, which first signalled the deprecation of deep imports and laid the groundwork for strict typing. By gathering telemetry and feedback from early adopters over subsequent minor releases, the core team refined root exports and ironed out friction points with third-party libraries.

Concurrently, the introduction of experimental Swift Package Manager support represents a multi-year desire from the iOS development community to move away from legacy dependency managers. Traditionally, CocoaPods has served as the default package manager for iOS targets within React Native applications. While CocoaPods remains fully supported and functions as the default path in version 0.87, SwiftPM offers an alternative native-first approach that relies entirely on Xcode.

To make SwiftPM viable, core engineers had to fundamentally restructure how precompiled binaries of React Native are shipped. Because SwiftPM enforces stricter rules regarding XCFramework structures and header locations than CocoaPods, the framework now utilizes dedicated header-only frameworks. This ensures standard header search path mechanics resolve correctly, giving every namespace a singular physical home. Developers adopting this experimental workflow execute a single terminal command (npx react-native spm --deintegrate) to inject package references directly into their existing .xcodeproj files without disrupting project signing, build phases, or existing capabilities.

Toolchain Requirements and Android Upgrades

In lockstep with desktop and mobile platform evolution, React Native 0.87 enforces higher minimum toolchain requirements. Developers must now use Node.js 22, Android Gradle Plugin (AGP) version 9, and Kotlin 2.0 or higher.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

The adoption of AGP 9 represents a major upgrade for Android builds, introducing significant API and architectural shifts. Because AGP 9 brings structural changes to Gradle build pipelines, the React Native team recommends that existing applications temporarily opt out of built-in Kotlin and the new domain-specific language (DSL) behavior introduced by the plugin. Developers can achieve this by specifying android.builtInKotlin=false and android.newDsl=false within their android/gradle.properties files. These opt-out flags serve as a temporary bridge until ecosystem-wide adoption of AGP 9 matures in future releases, as detailed in community proposals.

Official Responses and Community Collaboration

The release of React Native 0.87 underscores the collaborative nature of open-source software development at scale. According to official release metrics, version 0.87 incorporates 265 distinct commits contributed by 74 individual developers from across the global tech community.

Maintainers have expressed gratitude to the numerous external contributors who dedicated time to testing pre-releases, filing bug reports, and submitting patches for edge cases related to the strict typing rollout and binary restructuring. The active participation of enterprise partners and independent library authors alike has ensured that critical ecosystem packages could be updated ahead of the stable release, minimising disruption for teams upgrading production applications.

Broader Impact and Technical Implications

The long-term implications of React Native 0.87 point toward a faster, more predictable, and strictly typed development lifecycle. By phasing out legacy deep imports and enforcing strict TypeScript boundaries, the framework reduces runtime errors caused by misconfigured props or unhandled type mismatches. Furthermore, the inclusion of experimental SwiftPM support signals a potential future where iOS builds require fewer third-party Ruby dependencies, simplifying continuous integration (CI) pipelines and reducing setup friction for new team members.

For teams maintaining large applications, the upgrade path requires careful planning, particularly regarding the validation of third-party dependencies against the new Strict TypeScript API and the updated AGP 9 toolchain. However, the inclusion of comprehensive migration guides, automated tooling, and temporary compatibility bridges ensures that engineering teams can transition at a sustainable pace. As version 0.87 establishes itself as the new stable standard—concurrently moving version 0.84 into unsupported status—the React Native ecosystem solidifies its position as a mature, enterprise-ready framework capable of leveraging the absolute latest advancements in native mobile engineering.

]]>
https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-swift-package-manager-support-and-higher-toolchain-baselines/feed/ 0
React Native 0.87 Arrives with Strict TypeScript by Default and Experimental Swift Package Manager Support https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-and-experimental-swift-package-manager-support/ https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-and-experimental-swift-package-manager-support/#respond Fri, 25 Sep 2026 23:00:01 +0000 https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-and-experimental-swift-package-manager-support/ The mobile development landscape continues to evolve rapidly as Meta and the open-source community officially announce the release of React Native 0.87. This major milestone introduces significant structural improvements designed to modernize cross-platform application development. Chief among these updates is the transition of the Strict TypeScript API to the default JavaScript interface, alongside a substantial modernization of underlying toolchain requirements. Furthermore, developers can now experiment with native Swift Package Manager (SwiftPM) integration on iOS, bypassing traditional CocoaPods workflows. As the framework pushes toward leaner builds and stricter type safety, developers are met with upgraded minimum toolchain thresholds, including Node.js 22, Android Gradle Plugin 9, and Kotlin 2.0 and above.

The evolution of React Native’s typing system has been a multi-phase undertaking aimed at eliminating runtime ambiguities and improving developer experience through enhanced tooling intelligence. Originally introduced as an opt-in preview alongside the deprecation of deep imports in version 0.80, the Strict TypeScript API now becomes the foundational standard for all newly initialized projects. This ecosystem-wide shift enforces intentional breaking changes across the API surface, but rewards developers with comprehensive inline documentation and precise type checking. When hovering over components like TextInput in supporting IDEs, engineers now encounter fully populated doc comments and exact symbol signatures, moving away from the sparse documentation characteristic of legacy types. Recognizing that large-scale enterprise applications may require additional time to refactor sprawling codebases, the core team has implemented a temporary escape hatch. Developers can maintain legacy deep imports through a custom condition in their tsconfig.json file. However, this bridge is strictly temporary and is slated for complete removal in the subsequent 0.88 release, signaling a definitive end-of-life for legacy type definitions.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

In parallel with JavaScript-layer enhancements, iOS development workflows receive a major experimental upgrade with the introduction of Swift Package Manager support. Historically, React Native developers targeting Apple platforms have relied heavily on CocoaPods and Ruby-based dependency management. Version 0.87 introduces an additive, opt-in alternative that allows developers to manage dependencies natively through Xcode without requiring Ruby, Bundler, or traditional pod installation steps. By executing a specialized deintegration command via the React Native command-line interface, project configurations seamlessly inject Swift package references directly into existing Xcode project files without disrupting native signing capabilities, build phases, or custom configurations. To achieve seamless compatibility with SwiftPM, the core engineering team overhauled the distribution architecture of precompiled binaries, publishing new header-only XCFrameworks that resolve namespace issues more reliably. While CocoaPods remains the default and fully supported pathway for this release cycle, the inclusion of SwiftPM marks a crucial step toward reducing external toolchain dependencies for iOS development teams.

Android developers are similarly affected by infrastructural upgrades in version 0.87, which marks the framework’s official entry into the Android Gradle Plugin (AGP) 9 ecosystem. AGP 9 brings substantial build-system modifications and API shifts that require careful project configuration. To ensure a smooth transition across the broader ecosystem, the React Native upgrade path currently recommends explicitly opting out of built-in Kotlin and the new domain-specific language (DSL) behavior introduced by AGP 9. Developers can manage this by configuring specific property flags within their project’s gradle configuration files. These opt-outs serve as a transitional buffer while the broader community works toward native compatibility with AGP 9 architecture, with permanent adoption expected by the time AGP 10 releases.

The aggressive modernization of React Native 0.87 inevitably comes hand-in-hand with tightened system prerequisites. The framework now enforces minimum toolchain boundaries, requiring Node.js 22 as the baseline runtime environment alongside Android Gradle Plugin 9 and Kotlin 2.0+. These elevated requirements reflect a broader industry trend toward dropping support for legacy environments in favor of modern runtime performance, security patches, and optimized compiler features. Consequently, older versions of React Native, specifically the 0.84 branch, have officially transitioned to unsupported status under the project’s official support lifecycle policy. Teams maintaining legacy applications are strongly encouraged to utilize automated migration tooling, such as community upgrade helpers and dedicated ESLint fixers, to bridge the gap between older architectural paradigms and the modern codebase.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

The collaborative nature of the React Native open-source ecosystem is clearly demonstrated in the assembly of this release. Version 0.87 incorporates 265 distinct commits contributed by 74 individual developers from across the global technology landscape. This collective effort highlights the framework’s ongoing maturity as a dominant tool for cross-platform enterprise software deployment. Special recognition has been directed toward key contributors who spearheaded complex architectural changes, including the reorganization of XCFrameworks, the refinement of strict typing rules, and the stabilization of Metro version 0.87, which powers the underlying JavaScript bundling engine with improved performance and leaner output profiles.

Looking ahead at the broader implications for the development community, the release of React Native 0.87 underscores a strategic focus on developer ergonomics and native platform alignment. By forcing the adoption of strict typing and encouraging migration away from legacy scripting dependencies like Ruby on iOS, Meta and its open-source contributors are systematically removing historical friction points that have traditionally complicated cross-platform builds. While the immediate aftermath of any breaking-change release involves migration overhead for enterprise maintenance teams, the long-term trajectory promises more predictable builds, reduced dependency bloat, and a significantly more robust foundation for mobile applications scaling into the future. Developers looking to adopt the new version can initialize fresh projects using the latest command-line interface tools, while existing applications can leverage automated migration guides and upgrade assistants to transition smoothly into the next chapter of React Native development.

]]>
https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-by-default-and-experimental-swift-package-manager-support/feed/ 0
React Native 0.87 Arrives With Strict TypeScript Defaults, Swift Package Manager Support, and Higher Toolchain Baselines https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-defaults-swift-package-manager-support-and-higher-toolchain-baselines/ https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-defaults-swift-package-manager-support-and-higher-toolchain-baselines/#respond Fri, 25 Sep 2026 10:59:26 +0000 https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-defaults-swift-package-manager-support-and-higher-toolchain-baselines/ The cross-platform mobile development landscape is shifting once again as Meta and the open-source community officially release React Native 0.87. This major update brings several foundational changes aimed at improving developer experience, modernizing build systems, and tightening type safety across the entire framework. Most notably, version 0.87 makes the Strict TypeScript API the default for JavaScript development, introduces experimental support for the Swift Package Manager (SwiftPM) on iOS, and updates Metro to version 0.87. Additionally, the release establishes higher minimum toolchain requirements, mandating Node.js 22, Android Gradle Plugin (AGP) 9, and Kotlin 2.0 or higher.

Main Facts and Core Updates

At the heart of the React Native 0.87 release are three primary pillars: mandatory type strictness, build system modernization, and toolchain alignment. For years, the framework relied on flexible, sometimes loosely typed JavaScript interfaces that occasionally obscured errors until runtime. By promoting the Strict TypeScript API—initially introduced as an opt-in preview in version 0.80—to the default state, Meta is steering the ecosystem toward rigorous compile-time safety.

This transition brings comprehensive doc comments directly to core components like TextInput, allowing developers to view complete type information and inline documentation upon hovering over symbols within their IDEs. While this introduces intentional breaking changes across the public API surface, the framework maintainers have collaborated extensively with library authors to ensure a smooth transition. For projects unable to migrate immediately, a temporary opt-in bridge is available via the react-native-legacy-deep-imports custom condition in tsconfig.json, though these legacy types are slated for complete removal in version 0.88.

Concurrently, version 0.87 upgrades the Metro JavaScript bundler from 0.84 to 0.87, bringing performance enhancements and faster asset resolution. On the mobile platform front, iOS developers receive an experimental, additive alternative to CocoaPods through Swift Package Manager integration, while Android developers must now adapt to the architecture and build implications of Android Gradle Plugin 9.

Chronology and Background Context

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

The journey toward React Native 0.87 spans several release cycles, reflecting Meta’s ongoing commitment to modernizing a framework originally launched over a decade ago. The push for stricter typing began in earnest with version 0.80 in mid-2025, which introduced deep import deprecations and laid the groundwork for robust TypeScript definitions. Rather than forcing an abrupt migration, the core team utilized successive minor releases to gather feedback from community partners, refine root exports, and resolve incompatibilities with widespread third-party libraries.

Similarly, the exploration of Swift Package Manager support stems from long-standing developer feedback regarding the complexity of Ruby-based dependency managers on macOS. By bypassing CocoaPods, Bundler, and Ruby dependencies entirely, the new SwiftPM integration aims to simplify native iOS build configurations. To achieve this, Meta restructured how precompiled binaries of React Native are shipped, introducing dedicated header-only XCFrameworks that align with SwiftPM’s strict structural requirements.

On the Android side, the adoption of Android Gradle Plugin 9 represents the latest phase in keeping pace with the official Android development toolchain. Because AGP 9 introduces significant API shifts and breaking changes in Gradle builds, the React Native team has provided specific guidance—such as opting out of built-in Kotlin and new DSL behaviors via gradle.properties flags—to ensure stability during the upgrade cycle.

Supporting Data and Technical Specifications

React Native 0.87 is a collaborative milestone, incorporating 265 commits contributed by 74 developers from across the global tech community. The release also draws a definitive line under older software versions; under the official support policy, version 0.87 becomes the latest stable release, while version 0.84 and older move into unsupported status.

The baseline system requirements have significantly tightened to accommodate modern performance optimizations and security standards:

  • Node.js: Minimum version 22 required.
  • Android Gradle Plugin (AGP): Upgraded to version 9.0.
  • Kotlin: Minimum version 2.0+.
  • iOS Build Tooling: Xcode is now the sole requirement for SwiftPM workflows, eliminating external Ruby dependencies.

For iOS developers wishing to test the experimental Swift Package Manager integration, the migration process is designed to be non-destructive. Running npx react-native spm --deintegrate inside the ios directory removes CocoaPods while injecting Swift package references directly into the existing .xcodeproj file without altering project signing, capabilities, or build phases. Reversing the action is equally straightforward via the npx react-native spm deinit command. Once initialized, subsequent native package additions or removals automatically trigger autolinking during the build process, eliminating the traditional requirement to execute manual pod install commands.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

Official Responses and Community Engagement

The React Native core team and community maintainers have emphasized that version 0.87 is designed with automated tooling in mind. To mitigate the friction of upgrading to the Strict TypeScript API, the community has published specialized resources, including an ESLint fixer suite and an agent-driven upgrade skill available at /migrate-to-strict-api. These tools are intended to automate the resolution of type mismatches and import path adjustments across large enterprise codebases.

Furthermore, community discussions—tracked via RFC #0994 for SwiftPM and RFC #1006 for AGP 9 adoption—have served as transparent forums where third-party library maintainers can coordinate their own library updates. This collaborative approach has ensured that major ecosystem players are prepared for the strict type boundaries and header search path modifications introduced in this release, such as the shift from bare-form angle includes (e.g., #import <RCTAppDelegate.h>) to fully qualified namespace imports (e.g., #import <React/RCTAppDelegate.h>).

Broader Impact and Industry Implications

The release of React Native 0.87 carries significant implications for enterprise development teams, independent mobile engineers, and the broader JavaScript-to-native ecosystem. By enforcing Strict TypeScript by default, Meta is signaling that enterprise-grade type safety is no longer optional for modern cross-platform applications. Developers will immediately benefit from enhanced IDE autocompletion, reduced runtime errors, and clearer inline documentation, which collectively accelerate feature delivery and reduce maintenance overhead.

At the same time, the introduction of experimental Swift Package Manager support represents a potential turning point for iOS development workflows within the React Native community. Reducing reliance on CocoaPods and Ruby environments removes a notorious source of friction for new developers onboarding onto mobile projects. If SwiftPM transitions from experimental status to full support in future releases, it could streamline continuous integration pipelines and simplify dependency management across macOS build environments.

As organizations begin planning their migration paths using the React Native Upgrade Helper and Expo’s canary channels, version 0.87 stands out as a transitional yet deeply necessary step forward. By raising toolchain minimums and embracing modern language standards, the framework continues to cement its position as a robust, high-performance solution for cross-platform mobile engineering.

]]>
https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-defaults-swift-package-manager-support-and-higher-toolchain-baselines/feed/ 0
React Native 0.87 Arrives With Strict TypeScript API By Default and Experimental Swift Package Manager Support https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-api-by-default-and-experimental-swift-package-manager-support/ https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-api-by-default-and-experimental-swift-package-manager-support/#respond Thu, 24 Sep 2026 22:59:23 +0000 https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-api-by-default-and-experimental-swift-package-manager-support/ The core development team behind React Native has officially announced the global release of React Native version 0.87, introducing a series of foundational updates designed to modernize the framework’s architecture, tighten type safety, and streamline native tooling across both iOS and Android platforms. Highlighting this release is the transition of the Strict TypeScript API to the default JavaScript interface, alongside updates to Metro, experimental integration with the Swift Package Manager (SwiftPM), and support for the Android Gradle Plugin 9. As the framework evolves to meet modern development standards, version 0.87 also enforces higher minimum toolchain requirements, establishing a new baseline for enterprise and independent developers alike.

Background Context and Evolution of the Framework

Since its open-source debut by Meta, React Native has grown from a novel approach to cross-platform mobile development into an industry standard powering thousands of commercial applications. Over the years, the maintainers have focused heavily on bridging the gap between JavaScript logic and native capabilities, culminating in the recent architecture overloads that introduced features like the New Architecture, TurboModules, and Fabric.

Version 0.87 builds directly upon the roadmap established in earlier preview iterations. The journey toward stricter type definitions began in earnest with React Native 0.80, which initially rolled out the Strict TypeScript API as an opt-in preview alongside the deprecation of deep imports. By listening to community feedback, refining root exports, and resolving compatibility hurdles with popular third-party libraries, the core team has spent successive quarters smoothing out edge cases. The culmination of this iterative process is version 0.87, where strict typing is no longer optional for new projects, signaling a maturation of the ecosystem toward robust, scalable codebases.

Strict TypeScript API Becomes the Default Standard

The most visible change for JavaScript and TypeScript developers in React Native 0.87 is the elevation of the Strict TypeScript API to the default public JavaScript API. Originally previewed in version 0.80, this shift mandates intentional, ecosystem-wide adjustments across the API surface.

Under the new strict paradigm, developers will immediately notice enhanced developer ergonomics. For instance, hovering over core components like TextInput now yields comprehensive documentation and precise type information directly within modern IDEs, replacing the sparse or missing type definitions of legacy releases. Doc comments are now embedded across the vast majority of symbols, offering instant clarity without requiring developers to leave their code editors or consult external documentation.

While the long-term benefits include significantly reduced runtime errors, improved autocompletion, and cleaner code maintainability, the transition does introduce breaking changes. Many applications will upgrade smoothly, but projects relying on outdated patterns will need to consult the official migration guide. To ease the burden on engineering teams, the community has introduced specialized tooling, including the /migrate-to-strict-api agent-driven upgrade skill, which pairs with existing ESLint fixers to automate much of the refactoring process.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

Recognizing that large-scale enterprise applications require time to refactor complex codebases, the core team has implemented a temporary opt-out mechanism. Developers who are not yet ready to migrate can revert to legacy types through version 0.88 by adding the "react-native-legacy-deep-imports" custom condition to their tsconfig.json compiler options. However, maintainers have emphasized that this bridge is strictly temporary, with complete removal of legacy TypeScript types scheduled for the subsequent release.

Experimental Swift Package Manager Support for iOS

On the iOS front, React Native 0.87 introduces experimental support for the Swift Package Manager (SwiftPM) as an alternative to CocoaPods. This additive, opt-in feature allows developers to consume the same prebuilt XCFrameworks that React Native already publishes, effectively bypassing the traditional Ruby and CocoaPods toolchain.

Historically, iOS development within the React Native ecosystem has relied heavily on CocoaPods for dependency management, requiring Ruby, Bundler, and frequent pod install executions after modifying native libraries. With SwiftPM integration, developers only require Xcode. By executing a single command (npx react-native spm --deintegrate), engineers can inject Swift package references directly into their existing .xcodeproj files without disrupting project signing, build phases, or capabilities. Furthermore, subsequent native dependency additions or removals are handled automatically by the project build system, eliminating the need to manually execute pod synchronization commands.

To facilitate SwiftPM integration, the core engineering team had to fundamentally rethink how precompiled binaries are packaged and distributed. Because SwiftPM enforces stricter rules regarding XCFramework structures and header locations than CocoaPods, the release introduces dedicated header-only frameworks. This structural adjustment ensures that headers resolve seamlessly through standard framework and header search path mechanics. Consumers migrating to this workflow will note a minor syntax change: bare-form angle includes must now include their namespace (e.g., changing #import <RCTAppDelegate.h> to #import <React/RCTAppDelegate.h>).

While CocoaPods remains the default and fully supported path for this release, the introduction of SwiftPM represents a significant step toward modernizing the iOS developer experience and aligning React Native closer to native Apple development paradigms.

Android Ecosystem Updates and Toolchain Requirements

For Android developers, React Native 0.87 marks the official adoption of the Android Gradle Plugin (AGP) version 9. As a major release from Google, AGP 9 brings substantial API adjustments and architectural changes to Gradle builds.

To ensure stability during the transition period, the React Native maintainers recommend that developers temporarily opt out of the built-in Kotlin and new DSL behavior bundled with AGP 9. By adding specific flags (android.builtInKotlin=false and android.newDsl=false) to the android/gradle.properties file, teams can maintain build stability while ecosystem-wide adoption of AGP 9 progresses. These opt-out mechanisms are planned for deprecation alongside the rollout of AGP 10.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

In tandem with these platform upgrades, version 0.87 raises the minimum toolchain requirements across the board. Projects upgrading to this version must now run on Node.js 22, AGP 9, and Kotlin 2.0 or higher. These elevated requirements reflect the broader industry movement toward faster, more secure runtime environments and modern language features, ensuring that React Native applications can leverage the latest compiler optimizations and security patches.

Performance Improvements and Metro 0.87

Under the hood, Metro—the JavaScript bundler built specifically for React Native—has been updated from version 0.84 to 0.87. This update brings under-the-hood performance enhancements, faster incremental bundling speeds, and leaner memory footprints during development cycles. By optimizing the bundling pipeline, the update aims to reduce feedback loops for developers working on massive enterprise codebases, keeping hot-reloading responsive even as application logic scales.

Community Contributions and Upgrade Pathways

The release of React Native 0.87 is the result of a collaborative global effort, comprising 265 commits contributed by 74 independent developers and corporate partners. This continuous stream of community-driven patches highlights the health and vibrancy of the React Native ecosystem.

With the launch of version 0.87, the older 0.84.x branch officially transitions into unsupported status, aligning with the project’s formal support policy. Developers seeking to upgrade existing applications are encouraged to utilize the official React Native Upgrade Helper to inspect exact code diffs and migration requirements. New projects can be initialized immediately via the command line interface using npx @react-native-community/cli@latest init MyProject --version latest, while Expo users can anticipate integration through upcoming expo@canary releases.

As mobile development continues to demand higher performance, tighter type safety, and streamlined tooling, React Native 0.87 establishes a sturdy technical foundation for the next generation of cross-platform applications.

]]>
https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-api-by-default-and-experimental-swift-package-manager-support/feed/ 0
React Native 0.87 Released With Strict TypeScript Default and Experimental Swift Package Manager Support https://codeguilds.com/react-native-0-87-released-with-strict-typescript-default-and-experimental-swift-package-manager-support/ https://codeguilds.com/react-native-0-87-released-with-strict-typescript-default-and-experimental-swift-package-manager-support/#respond Sun, 20 Sep 2026 21:38:41 +0000 https://codeguilds.com/react-native-0-87-released-with-strict-typescript-default-and-experimental-swift-package-manager-support/ The core engineering team behind React Native has officially announced the global release of version 0.87, introducing major infrastructural shifts, modernized toolchain requirements, and developer experience enhancements designed to streamline cross-platform mobile development. The latest stable update transitions the Strict TypeScript API to the default JavaScript interface, updates the Metro bundler to version 0.87, and brings experimental support for Swift Package Manager (SwiftPM) as an alternative to CocoaPods on Apple’s iOS ecosystem.

With this rollout, older versions such as 0.84.x have officially reached end-of-life and transitioned into unsupported status under the project’s standard lifecycle support policy. Delivering 265 distinct commits contributed by 74 independent developers worldwide, version 0.87 reflects a continuous, community-driven effort to modernize the framework’s internals, reduce build-time friction, and ensure strict type safety across large-scale mobile applications.

Background Context and Evolution of the Framework

Since its open-source debut by Meta, React Native has evolved from a novel paradigm for building native applications using JavaScript into a foundational pillar of modern mobile engineering. Over the past several years, the core contributors have embarked on a multi-phase architectural overhaul—often referred to as the New Architecture—which includes the introduction of the Hermes JavaScript engine, JSI (JavaScript Interface), and a concurrent rendering system.

Version 0.87 represents a continuation of this modernization trend, specifically targeting developer tooling, static analysis safety, and dependency management. Historically, JavaScript-to-native bridges relied on loose typings and dynamic resolution methods that frequently led to runtime errors, difficult-to-trace bugs, and sluggish IDE autocompletion. The journey toward strict typing began in earnest with version 0.80, which introduced the Strict TypeScript API as an opt-in preview alongside the deprecation of deep imports. By graduation to version 0.87, the framework has deemed this API mature enough to become the default standard for all newly initialized and upgraded projects.

Main Facts of the 0.87 Release

The headline feature of React Native 0.87 is the elevation of the Strict TypeScript API to the default setting. Originally previewed in mid-2025, this shift standardizes public JavaScript APIs and cleans up root exports, eliminating legacy deep-import patterns that previously fragmented module resolution. Developers hovering over core components—such as the ubiquitous TextInput element—will now experience comprehensive type information, rich doc-comments, and precise property definitions directly inside their integrated development environments (IDEs).

To accommodate teams requiring a transitional runway, the core team has implemented a temporary opt-out mechanism. By inserting the "react-native-legacy-deep-imports" custom condition inside their tsconfig.json compiler options, development teams can temporarily fall back on legacy types. However, framework maintainers have explicitly noted that this bridge is strictly temporary and will be entirely purged in the subsequent 0.88 release.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

Parallel to the TypeScript updates, Metro—the JavaScript bundler optimized specifically for React Native—has been upgraded from version 0.84 to 0.87. This update delivers performance enhancements, improved memory management during bundling phases, and tighter integration with modern package exports.

Experimental Swift Package Manager Integration

Perhaps the most structurally significant addition for iOS developers in version 0.87 is the introduction of experimental support for Swift Package Manager (SwiftPM). For nearly a decade, CocoaPods has served as the undisputed standard for managing native iOS dependencies within the React Native ecosystem. While CocoaPods remains fully supported and functions as the default path for this release, SwiftPM offers a streamlined, native alternative that eliminates reliance on Ruby, Bundler, and external gem management.

The new SwiftPM integration requires only Xcode to manage and compile dependencies. Developers can transition an existing workspace by running a dedicated CLI command: npx react-native spm --deintegrate. This command safely strips CocoaPods out of the project and injects Swift package references directly into the existing .xcodeproj file without disrupting code signing configurations, project capabilities, or build phases. Furthermore, the integration is fully reversible via the npx react-native spm deinit command.

Under the hood, implementing SwiftPM required a fundamental rethinking of how precompiled React Native binaries are distributed. Because SwiftPM enforces much stricter structural requirements on XCFrameworks and header locations than CocoaPods, the framework team introduced dedicated header-only XCFrameworks. This guarantees that every namespace maintains a single physical home, resolving header files cleanly through standard framework search path mechanics. Consequently, developers must adopt standard angle-bracket namespace imports in their native Objective-C or C++ files—transitioning, for instance, from #import <RCTAppDelegate.h> to #import <React/RCTAppDelegate.h>.

Elevated Minimum Toolchain Requirements and Android Upgrades

In lockstep with its modernization of iOS tooling, React Native 0.87 raises the baseline requirements for developer toolchains across both major mobile platforms. To leverage the performance and security improvements of the latest build systems, the minimum required versions have been elevated to Node.js 22, the Android Gradle Plugin (AGP) version 9, and Kotlin 2.0 or higher.

The adoption of AGP 9 marks a notable milestone for Android developers. Because AGP 9 introduces substantial breaking changes and shifts in Gradle build APIs, the React Native core team has recommended an explicit opt-out strategy for built-in Kotlin and new DSL behaviors during the initial upgrade phase. Developers are advised to append specific flags—android.builtInKotlin=false and android.newDsl=false—to their android/gradle.properties files. These temporary flags ensure backward compatibility while the broader ecosystem transitions to native AGP 9 standards, with full removal anticipated in future AGP 10.x releases.

Chronology and Upgrade Path

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

The release cycle for version 0.87 follows a predictable cadence established by the React Native Working Group. Following months of testing in canary channels and community RFC discussions—specifically RFC #0994 regarding SwiftPM and RFC #1006 regarding AGP 9 adoption—the stable build was published to npm. Concurrently, version 0.84.x transitioned out of the active support window, leaving 0.87 as the primary supported stable release.

Upgrading existing applications requires careful coordination, particularly for projects heavily reliant on third-party native libraries that have not yet adopted the Strict TypeScript API or AGP 9. Engineers are encouraged to utilize the official React Native Upgrade Helper to audit diffs between versions. For automated migrations, agent-driven workflows can leverage specialized tooling, such as the /migrate-to-strict-api skill, which applies direct structural fixes alongside standard ESLint automation rules.

New projects can be initialized immediately using the updated command-line interface:
npx @react-native-community/cli@latest init MyProject --version latest
Meanwhile, developers working within the Expo ecosystem can anticipate React Native 0.87 integration rolling out through upcoming expo@canary and SDK release cycles.

Broader Industry Implications and Analysis

The release of React Native 0.87 underscores a broader industry-wide push toward type safety, developer velocity, and the reduction of configuration overhead in cross-platform development. By embedding strict typing into the core framework by default, Meta and the React Native open-source community are signaling that enterprise-grade reliability must take precedence over frictionless backward compatibility. This alignment brings React Native closer to the strict static analysis paradigms found in modern web development frameworks like Next.js and backend ecosystems built on TypeScript.

Simultaneously, the introduction of experimental Swift Package Manager support addresses long-standing developer friction points regarding iOS build environments. By removing the mandatory dependency on Ruby and CocoaPods, teams can onboard junior engineers and configure continuous integration (CI) pipelines with significantly fewer points of failure. While adoption of SwiftPM remains experimental in 0.87, its introduction points toward a future where native iOS integration for React Native mirrors the clean, native tooling native iOS developers expect.

As the mobile engineering landscape continues to prioritize faster compilation times, smaller bundle sizes, and robust type definitions, React Native 0.87 positions itself as a critical transitional milestone. It bridges legacy workflows with next-generation tooling, providing a stable, high-performance foundation for the next generation of cross-platform applications.

]]>
https://codeguilds.com/react-native-0-87-released-with-strict-typescript-default-and-experimental-swift-package-manager-support/feed/ 0
React Native 0.87 Arrives with Strict TypeScript Default, Swift Package Manager Support, and Higher Toolchain Requirements https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-default-swift-package-manager-support-and-higher-toolchain-requirements/ https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-default-swift-package-manager-support-and-higher-toolchain-requirements/#respond Sat, 19 Sep 2026 21:38:24 +0000 https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-default-swift-package-manager-support-and-higher-toolchain-requirements/ The release of React Native 0.87 marks a significant evolutionary milestone for one of the world’s most prominent cross-platform mobile development frameworks. Crafted by Meta alongside a vibrant open-source community of global contributors, this new stable version systematically modernizes the ecosystem’s foundational layers. Moving away from legacy paradigms, version 0.87 introduces the Strict TypeScript API as the default JavaScript environment, upgrades the Metro bundler to version 0.87, implements experimental support for the Swift Package Manager (SwiftPM) on iOS, and raises minimum toolchain thresholds across both Android and Node.js environments. As older versions like 0.84 transition into unsupported status under Meta’s support policy, developers are urged to evaluate their codebases against these substantial architectural shifts.

The roadmap toward version 0.87 has been meticulously planned across several preceding iterations. The journey of the Strict TypeScript API, for instance, began as an opt-in preview in version 0.80, which simultaneously deprecated deep imports to pave the way for cleaner, more robust module resolution. Over subsequent months, core maintainers collaborated closely with ecosystem partners and library maintainers to refine root exports and root out stubborn incompatibilities. Similarly, the exploration of Swift Package Manager integration stems from long-standing community discussions—such as RFC #0994—seeking to liberate iOS development workflows from the heavy reliance on Ruby, Bundler, and CocoaPods. Concurrently, the alignment with Android Gradle Plugin (AGP) version 9 reflects Meta’s ongoing commitment to keeping pace with Google’s evolving Android build ecosystem, as outlined in RFC #1006.

At the core of the React Native 0.87 release is the promotion of the Strict TypeScript API to the default JavaScript interface for all newly initialized and upgraded projects. Originally introduced experimentally in version 0.80, this strict typing model brings intentional breaking changes across the API surface. However, the ecosystem-wide tradeoff yields major qualitative improvements for developers. Most notably, standard symbols—such as the widely used TextInput component—now feature comprehensive inline documentation comments. When developers hover over a symbol within their IDE, they are greeted with rich, glanceable type definitions and contextual documentation rather than bare identifiers.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

To smooth the transition, the core team has provided robust tooling. Alongside standard ESLint fixers, agent-driven upgrades can leverage the specialized /migrate-to-strict-api skill, containing direct programmatic migration steps. For organizations requiring additional time to refactor sprawling codebases, a temporary opt-out mechanism has been provided. By injecting the "react-native-legacy-deep-imports" custom condition into the tsconfig.json file, development teams can temporarily revert to legacy types. Nevertheless, maintainers have explicitly noted that this bridge is strictly temporary and will be completely removed in the upcoming React Native 0.88 release.

In a move set to delight iOS developers weary of dependency management friction, React Native 0.87 introduces experimental support for the Swift Package Manager (SwiftPM) as an alternative to CocoaPods. This additive integration allows developers to consume the exact same prebuilt XCFrameworks published by React Native, while shifting the dependency configuration layer entirely into native Xcode project references. By executing a simple terminal command (npx react-native spm --deintegrate), developers can strip away CocoaPods without destabilizing existing project signing configurations, build phases, or custom capabilities.

Crucially, the SwiftPM workflow eliminates the repetitive ritual of running pod install after every dependency modification. Once the initial setup is complete, installing or removing native packages and initiating a build allows the project to automatically detect changes and handle autolinking seamlessly. To make this possible, Meta had to re-architect how precompiled binaries are shipped, introducing dedicated header-only XCFrameworks. This ensures strict adherence to SwiftPM’s rigorous header location rules, though it requires developers using bare-form angle includes to namespace their imports—for example, shifting from #import <RCTAppDelegate.h> to #import <React/RCTAppDelegate.h>.

On the Android front, version 0.87 delivers native support for the Android Gradle Plugin (AGP) version 9, a major release that introduces substantial API and structural modifications to Gradle builds. Because AGP 9 alters core build behavior, React Native’s maintainers currently recommend that development teams explicitly opt out of built-in Kotlin and the new DSL API features shipped with the plugin. By appending android.builtInKotlin=false and android.newDsl=false to the android/gradle.properties file—practices mirrored in the official upgrade helper—teams can maintain build stability until AGP 10.x forces broader ecosystem adoption.

React Native 0.87 - Strict TypeScript API, Metro Update, Swift Package Manager, AGP 9 Support

To support these advanced build features and modern language capabilities, React Native 0.87 enforces a strict upward revision of minimum toolchain requirements. Projects upgrading to this version must now run on Node.js 22, Android Gradle Plugin 9, and Kotlin 2.0 or higher. Furthermore, the release deprecates several legacy APIs and cleans up older tooling packages, signaling a definitive break from technical debt accumulated over past cycles.

The release of React Native 0.87 was a massive collaborative achievement, driven by 265 individual commits contributed by 74 developers from across the global tech community. Meta and the core maintainer team have extended special acknowledgements to the community members whose significant code contributions, RFC formulations, and testing feedback made these complex architectural upgrades possible.

As version 0.87 takes its place as the current stable release, older branches such as 0.84.x officially enter unsupported territory in accordance with the project’s formal support lifecycle policy. Development teams managing production applications are encouraged to consult the interactive React Native Upgrade Helper to inspect exact diffs and code modifications required for their specific project structures. For greenfield initiatives, initializing a project via npx @react-native-community/cli@latest init MyProject --version latest provisions an environment fully configured with the latest defaults, while Expo users can anticipate integration through upcoming expo@canary releases.

Ultimately, the implications of React Native 0.87 extend far beyond routine maintenance patches. By enforcing stricter type safety out of the box, reducing the cognitive overhead of iOS dependency management through SwiftPM, and aligning with modern toolchains like AGP 9 and Node.js 22, the framework is positioning itself for a faster, more reliable future. While these breaking changes demand an initial investment in migration effort, the long-term payoff includes cleaner codebases, enhanced IDE productivity, and a significantly streamlined developer experience across both mobile platforms.

]]>
https://codeguilds.com/react-native-0-87-arrives-with-strict-typescript-default-swift-package-manager-support-and-higher-toolchain-requirements/feed/ 0