All skills
Skillintermediate
native module
Create a React Native native module to bridge platform-specific functionality.
Claude Code Knowledge Pack7/10/2026
Overview
Create a React Native native module to bridge platform-specific functionality.
Steps
- Define the native module interface:
- Create the TypeScript interface:
- Implement the iOS native code (Swift/Objective-C):
- Implement the Android native code (Kotlin/Java):
- Handle platform differences:
- Test the module on both platforms.
- Document the module API and usage.
Format
Module: <name>
Methods:
- <method>(params): <return type>
Events:
Rules
- Always provide TypeScript types for the module interface.
- Handle errors consistently across both platforms.
- Use promises over callbacks for async operations.