{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "runanywhereai-runanywhere-sdks--add-on-device-ai-to-a-react-native-app-with-runanywhere",
 "repo": "RunanywhereAI/runanywhere-sdks",
 "repo_url": "https://github.com/RunanywhereAI/runanywhere-sdks",
 "repo_slug": "runanywhereai-runanywhere-sdks",
 "title": "Add on device AI to a React Native app",
 "page_title": "How to add on device AI to a React Native app with Runanywhere SDKS",
 "summary": "Install the RunAnywhere React Native core and llama.cpp packages and call generate in your app.",
 "who": "Mobile developers adding offline chat or summaries to an app.",
 "problem": "Shipping cloud AI in a mobile app adds per user cost and needs connectivity.",
 "outcome": "An app that generates text on the phone itself.",
 "steps": [
  "Run `npm install @runanywhere/core@0.20.27 @runanywhere/llamacpp@0.20.27`",
  "Initialize RunAnywhere and load a model as the React Native example shows",
  "Call RunAnywhere.generate with your prompt",
  "Test on a real device"
 ],
 "agent_prompt": "Using RunanywhereAI/runanywhere-sdks, add `npm install @runanywhere/core@0.20.27 @runanywhere/llamacpp@0.20.27` to <my React Native app> and build a screen that summarises text on device.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Advanced",
 "time": "2 hours",
 "basis": "readme",
 "caveat": "Pick a small model for phones; larger ones may not fit in memory.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "c++",
 "requirements": [
  "Python with pip, or npm for React Native and Web",
  "A supported device; models download on first use"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "download",
   "notice": "Models download to the device on first use; mind app size and data use."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/runanywhereai-runanywhere-sdks/add-on-device-ai-to-a-react-native-app-with-runanywhere/",
 "md": "https://dedupedai.com/use-cases/runanywhereai-runanywhere-sdks/add-on-device-ai-to-a-react-native-app-with-runanywhere/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/runanywhereai-runanywhere-sdks--add-on-device-ai-to-a-react-native-app-with-runanywhere.json",
 "api_version": "v1"
}
