Add a chat with Google's Gemma 4 E2B that runs on the phone (no server, no API key, works offline) to an existing Expo or React Native app, using react-native-litert-lm (LiteRT-LM). Use when the user asks for an on-device, offline or private LLM chat, "Gemma on the phone", running Gemma 4 in React Native or Expo, or a local AI assistant in a mobile app. Covers the packages and versions, the Expo config plugin and the iOS memory entitlements, which model file and backend each phone gets, download with progress and a SHA-256 check, load, streaming replies drawn from Markdown, reset, and the error codes the screen must explain.
Daisuke Majima (MLBoy)
@john-rockyperson
400+ open models on Hugging Face, converted to LiteRT, Core AI and ExecuTorch and measured on phones. 163 of them in litert-community. Ex-Ultralytics.
1 skill Japan Synced
Skills
john-rocky/expo-template-litert-gemma
Expo template: a chat with Gemma 4 E2B running on the phone (react-native-litert-lm, LiteRT-LM).
1 skill
npx skilld add john-rocky/expo-template-litert-gemma --allCurated skills from @john-rocky. Checked GitHub just now