react-native-turbo-module

Implement type-safe React Native TurboModules with Codegen and cross-platform native code.

2|Updated May 20, 2026
One-click install
npx skills add https://github.com/Yemomo511/hybrid-agent-rail --skill react-native-turbo-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-native-turbo-module
Source: https://github.com/Yemomo511/hybrid-agent-rail/tree/main/.codex/skills/create-skill/reference/good-example
Command: npx skills add https://github.com/Yemomo511/hybrid-agent-rail --skill react-native-turbo-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the complex, error-prone manual work of implementing React Native TurboModules for the new architecture, removing the need to handle low-level Codegen configuration, cross-platform native implementation, and module registration boilerplate on your own.

Core Features & Use Cases

  • End-to-end TurboModule workflow: Covers TypeScript Spec definition, Codegen config setup, Android Kotlin/Java implementation, iOS Objective-C++ implementation, and module registration for both platforms.
  • Cross-platform validation: Includes built-in steps to verify Codegen generation, Android build success, iOS build success, and JS call functionality to ensure the module works as expected.
  • Troubleshooting support: Provides targeted solutions for common issues like Spec import failures, TurboModule registration errors, and mismatched method signatures between Spec and native code. Use case example: If you need to add a native device token storage module to your React Native app, this Skill automates the entire process from Spec design to cross-platform validation, reducing implementation time from hours to minutes.

Quick Start

Use this skill to implement a new TurboModule for accessing native device token storage in your React Native app, including all required Spec definitions, native code, and validation steps.

Frequently Asked Questions about react-native-turbo-module

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build type-safe React Native TurboModules for native API access?

To build type-safe React Native TurboModules, you define a TypeScript Spec, configure Codegen, implement Android Kotlin and iOS Objective-C++ code, and register the module for cross-platform JavaScript access. This replaces legacy bridge limitations with direct native API exposure.

What is the React Native TurboModule architecture and when do I need it?

The TurboModule architecture is React Native's new native module system that provides type-safe, synchronous access to native APIs. You need it when exposing native device APIs, SDK wrappers, or authentication services to JavaScript in React Native 0.74+ apps with the new architecture enabled.

How to configure Codegen for a React Native TurboModule on Android and iOS?

Configuring Codegen for a React Native TurboModule involves setting up the Codegen configuration file, defining a TypeScript Spec, and generating platform-specific native interfaces. This process creates the boilerplate Android Kotlin and iOS Objective-C++ implementations required for JavaScript interoperability.

Does my React Native app need the new architecture enabled to use TurboModules?

Yes, your React Native app needs the new architecture enabled to use TurboModules. This feature is designed for React Native 0.74+ applications and relies on the new architecture to replace legacy bridge limitations with type-safe native module access.

Why does my TurboModule Spec import fail during Codegen generation?

TurboModule Spec import failures during Codegen generation often stem from mismatched method signatures between the Spec and native code or incorrect Codegen configuration. Verifying the TypeScript Spec definition and ensuring proper module registration on both Android and iOS resolves these common errors.

What is the best way to expose a native device storage API to JavaScript in React Native?

The best way to expose a native device storage API is implementing a TurboModule. This involves creating a TypeScript Spec, writing Android Kotlin and iOS Objective-C++ implementations, and validating the end-to-end build to ensure type-safe JavaScript access to the native layer.