LogoLogo

On-device LLMs in React Native

react-native-ai brings on-device LLMs capabilities to mobile React Native apps.

On-device LLM execution

Run large language models directly on mobile devices without requiring cloud infrastructure or internet connectivity.

Vercel AI SDK compatibility

Use Vercel AI SDK functions like streamText and generateText with local models.

Apple Foundation Models

Use Apple's Foundation Models on iOS 26+ devices with Apple Intelligence, with no model downloads.

Multiple runtimes

Run models with Apple Foundation Models, Apple Core AI, Gemini Nano, llama.rn or MLC LLM behind the same AI SDK interface.

iOS and Android

Llama and MLC run on both platforms. Apple Foundation Models and Core AI are iOS-only, and Gemini Nano via ADK is Android-only.

Privacy-first approach

Inference runs locally on the device, so user data stays on it. Cloud models, like ADK's optional cloud Gemini, are opt-in.

Need React or React Native expertise you can count on?

We've spent years building full-stack, cross-platform apps and solving tough technical challenges.