WhoBuilt

Intelligent Fallbacks: Using Apple Intelligence Seamlessly With @react-native-ai/apple

Feb 24, 2026· 5 min· 793 views·Watch on YouTube

Speaker

Szymon Rybczak, a senior React Native developer at Callstack, explains how to use Apple Foundation Models in React Native through the @react-native-ai/apple package on React Native AI Unpacked.

How Apple’s built-in models differ

Rybczak describes the package as a way to bring Apple Foundation Models to React Native. Because the models ship with iOS, they can be reused across apps and are designed for iPhone memory needs. He contrasts their typical 300 to 400 MB app memory use with up to 4.5 GB of RAM for a third-party model on iPhone 15 Pro.

Installation and simulator setup

Setup involves installing the library and CocoaPods, then rebuilding the native app. To test in a macOS simulator, Rybczak says developers need macOS Tahoe and iOS 26 simulators. He points to the package documentation for setup details and simulator troubleshooting.

Streaming answers without a network

The demo uses the Vercel AI SDK with the Apple provider’s model, including its streamText API. With networking disabled, the app answers a question about React Native on the device. Rybczak describes the response as smooth and fast, with no internet connection needed.

Generating schema-based objects

Rybczak also demonstrates structured output using a Zod schema with name and description string fields. The model returns an object matching those fields, which the app can then display or use in its interface.

Where to learn more

Rybczak recommends trying the package in an iOS 26 app and consulting the documentation for API guidance and troubleshooting. He directs developers to the Callstack Incubator AI repository and invites them to report issues on GitHub.

Takeaways

  • Apple’s built-in models can be shared across apps, which may reduce the memory burden compared with third-party models.
  • Test simulator support against the documented macOS Tahoe and iOS 26 requirements.
  • The Vercel AI SDK can stream responses from Apple’s on-device model while the network is disabled.
  • A Zod schema can shape model output into fields an app can use directly.

Mentioned in this talk

Search inside this talk

What was claimed 12

Related talks