React Native 0.87: Bridgeless Architecture, AGP 9 & Strict TypeScript by Default
Bridgeless mode is now enabled by default across both iOS and Android. Legacy C++ bridge calls are deprecated, requiring TurboModules and Fabric components.
Why This Matters
Directly impacts all mobile production apps upgrading from React Native 0.82-0.86.
Core Concepts & Architecture
Legacy native modules that rely on RCTBridge must be upgraded to TurboModule syntax. Build configurations for Android require JDK 17+ and AGP 8.8+ minimum.
Implementation Details
Android Gradle Plugin 9.0 support, Swift Package Manager integration improvements for iOS pods, strict TypeScript typings for all core components, and Hermes V11 JIT improvements.
Practical Code Example
The following code illustrates this pattern in a production-ready implementation:
import { TurboModule, TurboModuleRegistry } from 'react-native';
export interface Spec extends TurboModule {
getSystemTelemetry(): Promise<{ batteryLevel: number; memoryPressure: string }>;
}
export default TurboModuleRegistry.getEnforcing<Spec>('DeviceTelemetryModule');
Production Considerations
When deploying this in production environments:
- Enforce strict typing and runtime schema validation on all public ingestion vectors.
- Implement defensive rate limiting, connection pooling, and graceful process shutdown.
- Monitor execution latencies using structured telemetry, APM traces, and health check endpoints.
Performance, Security & Scalability
- Security & Authorization: Validate inputs, sanitize database queries, and maintain strict access boundaries.
- Scalability: Design for stateless horizontal scaling and leverage connection pooling and edge caching.
- Telemetry: Track P95 and P99 latency percentiles to detect regressions early in staging.
Common Mistakes & Best Practices
Common Mistakes
- Neglecting Edge Case Validation: Failing to handle network partitions or invalid payloads gracefully.
- Hardcoding Configuration: Always inject environment variables and avoid magic constants in domain code.
Best Practices
- Idempotency: Guarantee safe retries on state-mutating operations.
- Automated CI/CD: Run regression test suites in isolated branches before cutting over production traffic.
Conclusion
An architectural guide explaining how to verify TurboModule compatibility and safely upgrade production mobile apps to Bridgeless mode.
Building a modern mobile or web product? Discuss your upcoming project with our software engineering team at DevMinds Technologies.
Sources & References
- Official React Native GitHub Releases (Official Release Notes)
- React Native Core Blog (Official Documentation)
- React Native Community RFCs (GitHub)