{"name":"build-react-native-native-module","description":"Scaffolds a React Native Turbo Module as a standalone library or a local module inside the project, with Kotlin and Objective-C. Use when the user wants a native module, a Turbo Module, or a local native library.","category":"apps","tags":["react-native"],"models":["any"],"proven":false,"passing_families":0,"model_testing":"Not yet model-tested; testing Jan 2027","url":"https://theskillvault.ai/skills/build-react-native-native-module","api_url":"https://theskillvault.ai/api/skills/build-react-native-native-module","raw_url":"https://theskillvault.ai/api/skills/build-react-native-native-module/raw","body":"# Build a React Native native module\n\nA Turbo Module is how JavaScript calls the platform layer. Scaffold it. Do not hand-write a second bridge beside the generated files.\n\n## When to use\n- The project needs native behaviour the JS layer cannot do.\n- The module should live inside the current project and autolink.\n- A standalone library should ship with a small example shell.\n\n## When not to use\n- The need is a phone UI in Expo, such as a sheet or a switch. That is a separate skill.\n- The need is a new Expo product shell. That is the Expo hub skill.\n- The need is tabs, lists, or scroll speed. Those are separate skills.\n- The project should move to a newer React Native release. That upgrade is not this skill.\n\n## Steps\n1. Choose a standalone library or a local module. A local module stays in the current project. A standalone library is its own package.\n2. Run the React Native library scaffolder for a Turbo Module with Kotlin and Objective-C. Kotlin covers the Kotlin phone platform and Objective-C the other.\n3. For a module inside the current project, pass `--local` so autolinking can see it.\n4. For a standalone library, an Expo example shell is enough to exercise the module. The product shell, if any, stays with the Expo hub skill.\n5. Read the generated native files and add the behaviour there. Do not add a second, hand-written bridge.\n6. Keep secrets out of the generated example. This library did not run the scaffolder or a device.\n\n## Gotchas\n- Do not include passwords, tokens, or private endpoints in the example or in native samples.\n- A JS-only library does not need kotlin-objc. Do not pick a Turbo Module for pure JS.\n- Skipping `--local` on an in-project module leaves the files outside autolinking.\n- This is an independent how-to adapted from a Callstack Incubator skill. It is not official React Native documentation, and it was not run for this library.\n\n## Portability\nIf you use Expo, the local module can still be a Turbo Module inside that project. If you use a bare React Native project, use the same scaffolder flags. If you use SwiftUI or WinUI, skip this skill.\n\n## Done when\n- The scaffolder was given a Turbo Module and kotlin-objc.\n- A local module used `--local`, or a standalone library has its own package.\n- No second bridge was added beside the generated files.\n\n## Example prompt\n\"Add a local React Native Turbo Module to this project, with Kotlin and Objective-C. Do not make it a separate published library.\"\n\n---\nAdapted from \"create-react-native-library\" by Callstack Incubator (MIT, Copyright (c) 2026 Callstack Incubator). See LICENSE.txt.","files":["LICENSE.txt"],"license":"MIT","license_name":"MIT License","license_url":"https://opensource.org/license/mit","attribution":"Based on work by Callstack Incubator (callstackincubator/agent-skills, create-react-native-library) (Copyright (c) 2026 Callstack Incubator, MIT License), https://github.com/callstackincubator/agent-skills/tree/59e9d17446a248b21d86f078fcd0bd2d36db1ca4/skills/create-react-native-library; adapted by TheSkillVault, https://theskillvault.ai","install":{"claude_code":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-react-native-native-module/raw' -o ~/'.claude/skills/build-react-native-native-module/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-react-native-native-module/files/LICENSE.txt' -o ~/'.claude/skills/build-react-native-native-module/LICENSE.txt'","cursor":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-react-native-native-module/raw' -o '.cursor/skills/build-react-native-native-module/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-react-native-native-module/files/LICENSE.txt' -o '.cursor/skills/build-react-native-native-module/LICENSE.txt'","agents":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-react-native-native-module/raw' -o '.agents/skills/build-react-native-native-module/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/build-react-native-native-module/files/LICENSE.txt' -o '.agents/skills/build-react-native-native-module/LICENSE.txt'","mcp_url":"https://theskillvault.ai/mcp","cursor_mcp_deeplink":"cursor://anysphere.cursor-deeplink/mcp/install?name=theskillvault&config=eyJ1cmwiOiJodHRwczovL3RoZXNraWxsdmF1bHQuYWkvbWNwIn0%3D","mcp_config":{"mcpServers":{"theskillvault":{"url":"https://theskillvault.ai/mcp"}}}},"bundles":[],"tested_on":[{"family":"chatgpt","name":"ChatGPT","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"claude","name":"Claude","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"gemini","name":"Gemini","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"grok","name":"Grok","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"llama","name":"Llama","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"deepseek","name":"DeepSeek","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"mistral","name":"Mistral","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"qwen","name":"Qwen","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"kimi","name":"Kimi K","outcome":null,"date":null,"source":null,"counts":false,"stale":false}],"proven_rule":{"threshold":5,"window_days":365,"computed_at":"2026-11-29T03:42:30.374Z"}}