Rybczak describes on-device models as a way to avoid API costs and keep private data on the user’s device. They can respond quickly, work offline, and avoid dependence on an available network service.
React Native AI: Bringing On-Device LLMs With AI SDK
Speaker
Szymon Rybczak, senior engineer at Callstack, presents on running on-device LLMs in React Native with the AI SDK at the first AI Meetup in Wrocław, organized with Vercel.
Rybczak wanted to run LLMs on phones through React Native without requiring app developers to become C++ specialists. He combined the AI SDK’s provider interface with the MLC engine, then demonstrated a downloaded model answering a question in airplane mode. That setup needed a large download, a recent device, and about 4 GB of RAM.
After Apple announced its Foundation Models framework at WWDC 2025, Rybczak and Callstack colleagues connected it to React Native. Their proof of concept used the AI SDK’s `generateText` and React Native AI, and was working within 24 hours of the announcement. The model answered quickly offline; Rybczak said its underlying model details were not officially known.
Rybczak demonstrated streaming responses, structured output using Zod schemas converted to Swift types, and offline speech-to-text and text-to-speech. He also described tool calling, including the possibility of invoking native modules, and embeddings. He noted that speech recognition was less capable than Whisper in their testing.
The team had marked Apple on-device features for the iOS 26 launch as done and planned Android support using Gemini Nano, Gemini Edge, ExecuTorch, and MLC. Its goal was feature parity with the AI SDK across those engines. Rybczak credited Callstack colleagues and others who contributed to the package.
Takeaways
- On-device inference can reduce API costs and keep sensitive user data local, while enabling offline use.
- A provider interface can connect a shared AI API to different inference engines and native platform models.
- Account for model download size, device compatibility, and memory use when choosing a third-party on-device model.
- Structured output can bridge typed JavaScript schemas and native Swift types.
- Native capabilities such as speech and tool calling can extend an LLM feature beyond text generation.
Mentioned in this talk
Search inside this talk
What was claimed 11
- role atSzymon Rybczak is Senior React Native developer at
Callstack“I'm a senior React Native developer at Callstack.”
0:00inIntelligent Fallbacks: Using Apple Intelligence Seamlessly With @react-native-ai/appleYouTube Verified6 sources· Talk
- integrates with
React Native AI integrates with Vercel AI SDK“With all packages under the React Native AI family, we have full support for the AI SDK”
0:18inBuild Smarter Apps: Tool Calling & AI Orchestration ExplainedYouTube Verified4 sources· Talk
- built
“I've created many React Native libraries; React Native AI is one of them.”
0:36inHow to Run Any LLM On-Device With React NativeYouTube Verified2 sources· Talk
- built
Callstack built
React Native AI“This is why we built React Native AI at Callstack”
1:50inWhat Is the React Native AI SDK? A Complete Intro & QuickstartYouTube Verified2 sources· Talk
- uses
React Native AI uses MLC LLM“I found an engine called MLC LLM.”
3:51inHow to Run Any LLM On-Device With React NativeYouTube Verified3 sources· Talk
- featureVercel AI SDK: Provider interface for model implementations
“The actual implementation for any model lives in its provider.”
YouTube Unverified1 source· Talk
- featureMLC LLM: Runs language model inference on-device across platforms
“you can run any LLM on any platform”
YouTube Unverified1 source· Talk
- featureApple Foundation Models framework: On-device language model access
“they announced the Foundation Models framework”
YouTube Unverified1 source· Talk










