WhoBuilt

How to Run Any LLM On-Device With React Native

Feb 10, 2026· 26 min· 1.4K views·Watch on YouTube

Speaker

Szymon Rybczak, senior React Native developer at Callstack, explains React Native AI and on-device language models at React Advanced London 2025.

Bringing AI SDK to React Native

Rybczak describes how Vercel’s AI SDK offers a shared interface for providers such as Anthropic, Gemini, and OpenAI. He set out to connect that interface to React Native and chose MLC LLM as a cross-platform engine. A demo ran a downloaded model on an iPhone 15 Pro in airplane mode, though users first had to download several gigabytes.

Using models built into the operating system

Rybczak says he wanted models that users would not need to download. After Apple announced its Foundation Models framework at WWDC 2025, he connected it to React Native AI that same day. The model ran offline on an iPhone 15 Pro and was available through the library’s provider and generation functions.

What React Native AI supports

The library supports text generation and streaming, tool calling, structured outputs, embeddings, transcription, speech-to-text, and text-to-speech. Tool calls can connect a model to native features, such as reading a calendar or creating an event offline. Rybczak says developers can also define system prompts and use device data through tools when users grant the required permissions.

Trade-offs and practical use cases

Rybczak points to privacy, fast responses, and offline access as reasons to run models on-device, including summarizing private medical PDFs. He says cloud models remain more capable, so developers should choose based on the task. In his account, downloaded models could use around 4 GB of RAM, while Apple’s built-in model used about 200 to 300 MB.

Platform support and future engines

In the Q&A, Rybczak says Pixel 9 Pro devices shipped with built-in Gemini models and that the team was working on support. Apple’s models can run in simulators with macOS 26 and Apple Intelligence enabled; Android requires a physical Pixel Pro device. He says MLC is the current universal engine, while MLX was under consideration, and the library can check whether a device supports a model.

Takeaways

  • Use on-device models when privacy, offline availability, or low-latency responses matter more than the strongest model capability.
  • A downloaded model can work offline after installation, but its multi-gigabyte size and memory use may limit adoption.
  • Built-in operating system models avoid a separate model download and, in Rybczak’s figures, use substantially less RAM.
  • Connect model tool calls only to device features the app needs, and request the relevant user permissions.
  • Check model support on each device and provide fallback behavior for hardware that cannot run it.

Mentioned in this talk

Search inside this talk

What was claimed 13

Related talks