React Native SDK
Run AI models on-device in React Native apps for iOS and Android.Installation
Install the npm package:Setup
iOS
No additional setup required. The XCFramework is automatically linked.Android
No additional setup required. The native libraries are automatically included.Usage
Basic Completion
Completion with Options and Streaming
Audio Transcription
Embeddings
Vector Index
API Reference
Init / Lifecycle
Completion
Transcription
Embeddings
Tokenization
VAD / RAG
Vector Index
Telemetry
Bundling Models
Models must be accessible at runtime. Here are recommended approaches:iOS
- Add model files to your Xcode project
- Ensure they’re included in “Copy Bundle Resources”
- Access via bundle path:
Android
- Place models in
android/app/src/main/assets/ - Copy to app storage on first launch:
Requirements
- React Native 0.64+
- iOS 14.0+
- Android API 24+ (arm64-v8a)
See Also
C API Reference
Full C API reference underlying the React Native bindings
GitHub Repository
View source code and contribute
Swift SDK
Native Swift alternative for iOS
Kotlin SDK
Native Kotlin alternative for Android