add-native-extension
Installation
SKILL.md
Skill: Add a Native C++ Extension & JSI Bindings
Use this guide to add custom, performance-critical native operations in C++ and expose them to TypeScript via React Native JSI.
🚦 Architectural Guidelines
Before writing any C++ code, ensure you adhere to the following principles:
- Amdahl's Law & Premature Optimization:
- Prefer existing operations and TypeScript orchestration. Add native code when a missing platform capability, memory/threading requirement or measured bottleneck justifies it. Record relevant measurements when performance is the reason; there is no universal percentage cutoff.