0
Native module
Platforma özgü işlevsellik arasında köprü kurmak için bir React Native yerel modülü oluşturun.
yazan kuscubasiece·8 Eylül 2026
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
Platforma özgü işlevsellik arasında köprü kurmak için bir React Native yerel modülü oluşturun.
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/native-module/raw -o .claude/commands/native-module.mdHedef dosya: .claude/commands/native-module.md
---
name: native-module
description: Create a React Native native module to bridge platform-specific functionality.
---
Create a React Native native module to bridge platform-specific functionality.
## Steps
1. Define the native module interface:
2. Create the TypeScript interface:
3. Implement the iOS native code (Swift/Objective-C):
4. Implement the Android native code (Kotlin/Java):
5. Handle platform differences:
6. Test the module on both platforms.
7. 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.