freshcrate
Home > MCP Servers > react-native-agentic-ai

react-native-agentic-ai

Autonomous AI Agent SDK for React Native & Expo โ€” AI reads your live UI, acts via natural language, real-time voice agent (Gemini Live), and AI-powered testing via MCP (Model Context Protocol). One co

Description

Autonomous AI Agent SDK for React Native & Expo โ€” AI reads your live UI, acts via natural language, real-time voice agent (Gemini Live), and AI-powered testing via MCP (Model Context Protocol). One component. Zero config.

README

AI Support That Resolves โ€” Not Deflects

Drop in one React Native component and your app gets AI support that answers questions, navigates users to the right screen, fills forms, and resolves issues end-to-end โ€” with live human backup when needed. No custom API connectors required โ€” the app UI is already the integration.

Two names, one package โ€” pick whichever you prefer:

npm install @mobileai/react-native
# โ€” or โ€”
npm install react-native-agentic-ai

๐Ÿค– AI Support Agent โ€” Answers, Acts, and Resolves Inside Your App

AI Support Agent navigating the app and resolving user issues end-to-end


npm

npm

license

platform

Two names, one package โ€” install either: @mobileai/react-native or react-native-agentic-ai

โญ If this helped you, star this repo โ€” it helps others find it!


๐Ÿ’ก The Problem With Every Support Tool Today

Intercom, Zendesk, and every chat widget all do the same thing: send the user instructions in a chat bubble.

"To cancel your order, go to Orders, tap the order, then tap Cancel."

That's not support. That's documentation delivery with a chat UI.

This SDK takes a different approach. Instead of telling users where to go, it โ€” with the user's permission โ€” goes there for them.


๐Ÿง  How It Works โ€” The App's UI Is the Integration Layer

Every other support tool needs you to build API connectors: endpoints, webhooks, action definitions in their dashboard. Months of backend work before the AI can do anything useful.

This SDK reads your app's live UI natively โ€” every button, label, input, and screen โ€” in real time. There's nothing to integrate. The UI is already the integration. The app already knows how to cancel orders, update addresses, apply promo codes โ€” it has buttons for all of it. The AI just uses them.

No OCR. No image pipelines. No selectors. No annotations. No backend connectors.

Why This Matters in the Support Context

The most important insight: UI control is only uncomfortable when it's unexpected. In a support conversation, the user has already asked for help โ€” they're in a "please help me" mindset:

Context User reaction to AI controlling UI
Unprompted (out of nowhere) ๐Ÿ˜จ "What is happening?"
In a support chat โ€” user asked for help ๐Ÿ˜Š "Yes please, do it for me"
User is frustrated and types "how do I..." ๐Ÿ˜ฎโ€๐Ÿ’จ "Thank God, yes"

๐ŸŽŸ๏ธ The 5-Level Support Ladder

The SDK handles every tier of support automatically โ€” from a simple FAQ answer to live human chat:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Level 1: Knowledge Answer                           โ”‚
โ”‚  Answers from knowledge base โ€” instant, zero UI     โ”‚
โ”‚  "What's your return policy?" โ†’ answered directly    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Level 2: Show & Guide                               โ”‚
โ”‚  AI navigates to exact screen, user acts last        โ”‚
โ”‚  "Settings โ†’ Notifications. It's right here. โ˜˜๏ธ"     โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Level 3: Do & Confirm (Copilot โ€” default)           โ”‚
โ”‚  AI fills forms, user confirms the final action      โ”‚
โ”‚  "I've typed your new address. Tap Save to confirm." โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Level 4: Full Resolution (Autopilot)                โ”‚
โ”‚  AI completes entire flow with one permission gate   โ”‚
โ”‚  "Done! Order #4521 cancelled. Refund in 3-5 days." โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Level 5: Human Escalation                           โ”‚
โ”‚  Live agent via WebSocket โ€” seamless handoff         โ”‚
โ”‚  Billing dispute, legal issues, edge cases           โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Example conversations

Level 1 โ€” Knowledge Answer
User: "What's your return policy?"
AI:   "You can return items within 30 days. Full refund in 5-7 business days."
      [from knowledge base โ€” no UI needed]
Level 2 โ€” Show & Guide
User: "How do I turn on price alerts?"
AI:   "That's in Settings โ†’ Notifications. Want me to take you there?"
User: "Yes"
AI:   [navigates to Settings โ†’ scrolls to Notifications section]
AI:   "Here it is. The Price Alerts toggle is right here. โ˜˜๏ธ"
      [user taps the toggle themselves]
Level 3 โ€” Do & Confirm (Copilot, default)
User: "I need to change my shipping address"
AI:   "Sure! I'll navigate to your address settings."
      [navigates to Profile โ†’ Address]
AI:   "What's the new address?"
User: "15 Omar St, Nasr City, Cairo"
AI:   [types the address into the fields]
AI:   "I've filled in '15 Omar St, Nasr City, Cairo'. Tap Save to confirm."
      [user taps Save themselves]
Level 4 โ€” Full Resolution (Autopilot)
User: "Cancel my last order"
AI:   "Order #4521 โ€” Margherita pizza, $12.99. Want me to cancel it?"
User: "Yes"
AI:   [navigates to Orders โ†’ finds #4521 โ†’ taps Cancel โ†’ taps Confirm]
AI:   "Done! Order #4521 is cancelled. Refund arrives in 3-5 days."
Level 5 โ€” Human Escalation
User: "I was charged twice for my order"
AI:   "I can see your order history, but billing disputes need a human agent."
      [triggers escalate โ†’ live agent chat via WebSocket]

โš™๏ธ Why Not Intercom or Zendesk?

Intercom Fin Zendesk AI This SDK
Answer questions โœ… โœ… โœ… Knowledge base
Navigate user to right screen โŒ โŒ โœ… App-aware navigation
Fill forms for the user โŒ โŒ โœ… Types directly into fields
Execute in-app actions Via API connectors (must build) Via API connectors โœ… Via UI โ€” zero backend work
Voice support โŒ โŒ โœ… Gemini Live
Human escalation โœ… โœ… โœ… WebSocket live chat
Mobile-native โŒ WebView overlay โŒ WebView โœ… React Native component
Setup time Daysโ€“weeks (build connectors) Daysโ€“weeks Minutes (<AIAgent> wrapper)
Price per resolution $0.99 + subscription $1.50โ€“2.00 You decide

The moat

No competitor can do Levels 2โ€“4. Intercom and Zendesk answer questions (Level 1) and escalate to humans (Level 5). The middle โ€” app-aware navigation, form assistance, and full in-app resolution โ€” is uniquely possible because this SDK reads the React Native Fiber tree. That can't be added with a plugin or API connector.


โœจ What's Inside

Support Your Users

๐Ÿฆน AI Support Agent โ€” Resolves at Every Level

The AI answers questions, guides users to the right screen, fills forms on their behalf, or completes full task flows โ€” with voice support and human escalation built in. All in the existing app UI. Zero backend integration.

  • Zero-config โ€” wrap your app with <AIAgent>, done. No annotations, no selectors, no API connectors
  • 5-level resolution โ€” knowledge answer โ†’ guided navigation โ†’ copilot โ†’ full resolution โ†’ human escalation
  • Copilot mode (default) โ€” AI pauses once before irreversible actions (order, delete, submit). User always stays in control
  • Human escalation โ€” live chat via WebSocket, CSAT survey, ticket dashboard โ€” all built in
  • Knowledge base โ€” policies, FAQs, product data queried on demand โ€” no token waste

๐ŸŽค Real-time Voice Support โ€” Users Speak, AI Acts

Full bidirectional voice AI powered by the Gemini Live API. Users speak their support request; the agent responds with voice AND navigates, fills forms, and resolves issues simultaneously.

  • Sub-second latency โ€” real-time audio via WebSockets, not turn-based
  • Full resolution โ€” same navigate, type, tap as text mode โ€” all by voice
  • Screen-aware โ€” auto-detects screen changes and updates context instantly

๐Ÿ’ก Speech-to-text in text mode: Install expo-speech-recognition for a mic button in the chat bar โ€” letting users dictate instead of typing. Separate from voice mode.

๐ŸŽ Siri & Spotlight โ€” Trigger Actions Hands-Free (iOS 16+)

Every useAction you register automatically becomes a Siri shortcut and Spotlight action. One config plugin added at build time โ€” no Swift required โ€” and users can say:

"Hey Siri, track my order in MyApp" "Hey Siri, checkout in MyApp" "Hey Siri, cancel my last order in MyApp"

Setup โ€” Expo Config Plugin
// app.json
{
  "expo": {
    "plugins": [
      ["@mobileai/react-native/withAppIntents", {
        "scanDirectory": "src",
        "appScheme": "myapp"
      }]
    ]
  }
}

After npx expo prebuild, every registered useAction is available in Siri and Spotlight automatically.

Or generate manually:

# Scan useAction calls โ†’ intent-manifest.json
npx @mobileai/react-native generate-intents src

# Generate Swift AppIntents code
npx @mobileai/react-native generate-swift intent-manifest.json myapp

โš ๏ธ iOS 16+ only. Android equivalent (Google Assistant App Actions) is on the roadmap.


Supercharge Your Dev Workflow

๐Ÿ”Œ MCP Bridge โ€” Test Your App in English, Not Code

Your app becomes MCP-compatible with one prop. Connect any AI โ€” Antigravity, Claude Desktop, CI/CD pipelines โ€” to remotely read and control the running app. Find bugs without writing a single test.

MCP-only mode โ€” just want testing? No chat popup needed:

<AIAgent
  showChatBar={false}
  mcpServerUrl="ws://localhost:3101"
  apiKey="YOUR_KEY"
  navRef={navRef}
>
  <App />
</AIAgent>

๐Ÿงช AI-Powered Testing via MCP

The most powerful use case: test your app without writing test code. Connect your AI (Antigravity, Claude Desktop, or any MCP client) to the emulator and describe what to check โ€” in English. No selectors to maintain, no flaky tests, self-healing by design.

Skip the test framework. Just ask:

Ad-hoc โ€” ask your AI anything about the running app:

"Is the Laptop Stand price consistent between the home screen and the product detail page?"

YAML Test Plans โ€” commit reusable checks to your repo:

# tests/smoke.yaml
checks:
  - id: price-sync
    check: "Read the Laptop Stand price on home, tap it, compare with detail page"
  - id: profile-email
    check: "Go to Profile tab. Is the email displayed under the user's name?"

Then tell your AI: "Read tests/smoke.yaml and run each check on the emulator"

Real Results โ€” 5 bugs found autonomously:

# What was checked Bug found AI steps
1 Price consistency (list โ†’ detail) Laptop Stand: $45.99 vs $49.99 2
2 Profile completeness Email missing โ€” only name shown 2
3 Settings navigation Help Center missing from Support section 2
4 Description vs specifications "breathable mesh" vs "Leather Upper" 3
5 Cross-screen price sync Yoga Mat: $39.99 vs $34.99 4

๐Ÿ“ฆ Installation

Two names, one package โ€” pick whichever you prefer:

npm install @mobileai/react-native
# โ€” or โ€”
npm install react-native-agentic-ai

No native modules required by default. Works with Expo managed workflow out of the box โ€” no eject needed.

Optional Dependencies

๐Ÿ“ธ Screenshots โ€” for image/video content understanding
npx expo install react-native-view-shot
๐ŸŽ™๏ธ Speech-to-Text in Text Mode โ€” dictate messages instead of typing
npx expo install expo-speech-recognition

Automatically detected. No extra config needed โ€” a mic icon appears in the text chat bar, letting users speak their message instead of typing. This is separate from voice mode.

๐ŸŽค Voice Mode โ€” real-time bidirectional voice agent
npm install react-native-audio-api

Expo Managed โ€” add to app.json:

{
  "expo": {
    "android": { "permissions": ["RECORD_AUDIO", "MODIFY_AUDIO_SETTINGS"] },
    "ios": { "infoPlist": { "NSMicrophoneUsageDescription": "Required for voice chat with AI assistant" } }
  }
}

Then rebuild: npx expo prebuild && npx expo run:android (or run:ios)

Expo Bare / React Native CLI โ€” add RECORD_AUDIO + MODIFY_AUDIO_SETTINGS to AndroidManifest.xml and NSMicrophoneUsageDescription to Info.plist, then rebuild.

Hardware echo cancellation (AEC) is automatically enabled โ€” no extra setup.

๐Ÿ’ฌ Human Support & Ticket Persistence โ€” persist tickets and discovery tooltip state across sessions
npx expo install @react-native-async-storage/async-storage

Optional but recommended when using:

  • Human escalation support โ€” tickets survive app restarts
  • Discovery tooltip โ€” remembers if the user has already seen it

Without it, both features gracefully degrade: tickets are only visible during the current session, and the tooltip shows every launch instead of once.


๐Ÿš€ Quick Start

1. Enable Screen Mapping (optional, recommended)

Add one line to your metro.config.js โ€” the AI gets a map of every screen in your app, auto-generated on each dev start:

// metro.config.js
require('@mobileai/react-native/generate-map').autoGenerate(__dirname);

Or generate it manually anytime:

npx @mobileai/react-native generate-map

Without this, the AI can only see the currently mounted screen โ€” it has no idea what other screens exist or how to reach them. Example: "Write a review for the Laptop Stand" โ€” the AI sees the Home screen but doesn't know a WriteReview screen exists 3 levels deep. With a map, it sees every screen in your app and knows exactly how to get there: Home โ†’ Products โ†’ Detail โ†’ Reviews โ†’ WriteReview.

2. Wrap Your App

React Navigation

import { AIAgent } from '@mobileai/react-native'; // or 'react-native-agentic-ai'
import { NavigationContainer, useNavigationContainerRef } from '@react-navigation/native';
import screenMap from './ai-screen-map.json'; // auto-generated by step 1

export default function App() {
  const navRef = useNavigationContainerRef();

  return (
    <AIAgent
      // โš ๏ธ Prototyping ONLY โ€” don't ship API keys in production
      apiKey="YOUR_API_KEY"

      // โœ… Production: route through your secure backend proxy
      // proxyUrl="https://api.yourdomain.com/ai-proxy"
      // proxyHeaders={{ Authorization: `Bearer ${userToken}` }}

      navRef={navRef}
      screenMap={screenMap} // optional but recommended
    >
      <NavigationContainer ref={navRef}>
        {/* Your existing screens โ€” zero changes needed */}
      </NavigationContainer>
    </AIAgent>
  );
}

Expo Router

In your root layout (app/_layout.tsx):

import { AIAgent } from '@mobileai/react-native'; // or 'react-native-agentic-ai'
import { Slot, useNavigationContainerRef } from 'expo-router';
import screenMap from './ai-screen-map.json'; // auto-generated by step 1

export default function RootLayout() {
  const navRef = useNavigationContainerRef();

  return (
    <AIAgent
      apiKey={process.env.AI_API_KEY!}
      navRef={navRef}
      screenMap={screenMap}
    >
      <Slot />
    </AIAgent>
  );
}

Choose Your Provider

The examples above use Gemini (default). To use OpenAI for text mode, add the provider prop. Voice mode is not supported with OpenAI.

<AIAgent
  provider="openai"
  apiKey="YOUR_OPENAI_API_KEY"
  // model="gpt-4.1-mini"  โ† default, or use any OpenAI model
  navRef={navRef}
>
  {/* Same app, different brain */}
</AIAgent>

A floating chat bar appears automatically. Ask the AI to navigate, tap buttons, fill forms, answer questions.

Knowledge-Only Mode โ€” AI Assistant Without UI Automation

Set enableUIControl={false} for a lightweight FAQ / support assistant. Single LLM call, ~70% fewer tokens:

<AIAgent enableUIControl={false} knowledgeBase={KNOWLEDGE} />
Full Agent (default) Knowledge-Only
UI analysis โœ… Full structure read โŒ Skipped
Tokens per request ~500-2000 ~200
Agent loop Up to 25 steps Single call
Tools available 7 2 (done, query_knowledge)

๐Ÿ›ก๏ธ Copilot Mode โ€” Safe-by-Default UI Automation

The agent operates in copilot mode by default. It navigates, scrolls, types, and fills forms silently โ€” then pauses once before the final irreversible action (place order, delete account, submit payment) to ask the user for confirmation.

// Default โ€” copilot mode, zero extra config:
<AIAgent apiKey="..." navRef={navRef}>
  <App />
</AIAgent>

What the AI does silently:

  • Navigating between screens and tabs
  • Scrolling to find content
  • Typing into form fields
  • Selecting options and filters
  • Adding items to cart

What the AI pauses on (asks the user first):

  • Placing an order / completing a purchase
  • Submitting a form that sends data to a server
  • Deleting anything (account, item, message)
  • Confirming a payment or transaction
  • Saving account/profile changes

Opt-out to Full Autonomy

<AIAgent interactionMode="autopilot" />

Use autopilot for power users, accessibility tools, or repeat-task automation where confirmations are unwanted.

Optional: Mark Specific Buttons as Critical (Safety Net)

In copilot mode, the prompt handles ~95% of cases automatically. For extra safety on your most sensitive buttons, add aiConfirm={true} โ€” this adds a code-level block that cannot be bypassed even if the LLM ignores the prompt:

// These elements will ALWAYS require confirmation before the AI touches them
<Pressable aiConfirm onPress={deleteAccount}>
  <Text>Delete Account</Text>
</Pressable>

<Pressable aiConfirm onPress={placeOrder}>
  <Text>Place Order</Text>
</Pressable>

<TextInput aiConfirm placeholder="Credit card number" />

aiConfirm works on any interactive element: Pressable, TextInput, Slider, Picker, Switch, DatePicker.

๐Ÿ’ก Dev tip: In __DEV__ mode, the SDK logs a reminder to add aiConfirm to critical elements after each copilot task.

Three-Layer Safety Model

Layer Mechanism Developer effort
Prompt (primary) AI uses ask_user before irreversible commits Zero
aiConfirm prop (optional safety net) Code blocks specific elements Add prop to 2โ€“3 critical buttons
Dev warning (preventive) Logs tip in __DEV__ mode Zero

๐Ÿ’ฌ Human Support Mode

Transform the AI agent into a production-grade support system. The AI resolves issues directly inside your app UI โ€” no backend API integrations required. When it can't help, it escalates to a live human agent.

import { SupportGreeting, buildSupportPrompt, createEscalateTool } from '@mobileai/react-native';

<AIAgent
  apiKey="..."
  analyticsKey="mobileai_pub_xxx" // required for MobileAI escalation
  instructions={{
    system: buildSupportPrompt({
      enabled: true,
      greeting: {
        message: "Hi! ๐Ÿ‘‹ How can I help you today?",
        agentName: "Support",
      },
      quickReplies: [
        { label: "Track my order", icon: "๐Ÿ“ฆ" },
        { label: "Cancel order", icon: "โŒ" },
        { label: "Talk to a human", icon: "๐Ÿ‘ค" },
      ],
      escalation: { provider: 'mobileai' },
      csat: { enabled: true },
    }),
  }}
  customTools={{ escalate: createEscalateTool({ provider: 'mobileai' }) }}
  userContext={{
    userId: user.id,
    name: user.name,
    email: user.email,
    plan: 'pro',
  }}
>
  <App />
</AIAgent>

What Happens on Escalation

  1. AI creates a ticket in the MobileAI Dashboard inbox
  2. User receives a real-time live chat thread (WebSocket)
  3. Support agent replies โ€” user sees messages instantly
  4. Ticket is closed when resolved โ€” a CSAT survey appears

Escalation Providers

Provider What happens
'mobileai' Ticket โ†’ MobileAI Dashboard inbox + WebSocket live chat
'custom' Calls your onEscalate callback โ€” wire to Intercom, Zendesk, etc.
// Custom provider โ€” bring your own live chat:
createEscalateTool({
  provider: 'custom',
  onEscalate: (context) => {
    Intercom.presentNewConversation();
    // context includes: userId, message, screenName, chatHistory
  },
})

User Context

Pass user identity to the escalation ticket for agent visibility in the dashboard:

<AIAgent
  userContext={{
    userId: 'usr_123',
    name: 'Ahmed Hassan',
    email: 'ahmed@example.com',
    plan: 'pro',
    custom: { region: 'cairo', language: 'ar' },
  }}
  pushToken={expoPushToken}      // for offline support reply notifications
  pushTokenType="expo"            // 'fcm' | 'expo' | 'apns'
/>

SupportGreeting โ€” Standalone Greeting Component

Render the support greeting independently if you have a custom chat UI:

import { SupportGreeting } from '@mobileai/react-native';

<SupportGreeting
  message="Hi! ๐Ÿ‘‹ How can I help?"
  agentName="Support"
  quickReplies={[
    { label: 'Track order', icon: '๐Ÿ“ฆ' },
    { label: 'Talk to human', icon: '๐Ÿ‘ค' },
  ]}
  onQuickReply={(text) => send(text)}
/>

๐Ÿ—บ๏ธ Screen Mapping โ€” Navigation Intelligence

By default, the AI navigates by reading what's on screen and tapping visible elements. Screen mapping gives the AI a complete map of every screen and how they connect โ€” via static analysis of your source code (AST). No API key needed, runs in ~2 seconds.

Setup (one line)

Add to your metro.config.js โ€” the screen map auto-generates every time Metro starts:

// metro.config.js
require('@mobileai/react-native/generate-map').autoGenerate(__dirname);

// ... rest of your Metro config

Then pass the generated map to <AIAgent>:

import screenMap from './ai-screen-map.json';

<AIAgent screenMap={screenMap} navRef={navRef}>
  <App />
</AIAgent>

That's it. Works with both Expo Router and React Navigation โ€” auto-detected.

What It Gives the AI

Without Screen Map With Screen Map
AI sees only the current screen AI knows every screen in your app
Must explore to find features Plans the full navigation path upfront
Deep screens may be unreachable Knows each screen's navigatesTo links
No knowledge of dynamic routes Understands item/[id], category/[id] patterns

Disable Without Removing

<AIAgent screenMap={screenMap} useScreenMap={false} />
Advanced: Watch mode, CLI options, and npm scripts

Manual generation:

npx @mobileai/react-native generate-map

Watch mode โ€” auto-regenerates on file changes:

npx @mobileai/react-native generate-map --watch

npm scripts โ€” auto-run before start/build:

{
  "scripts": {
    "generate-map": "npx @mobileai/react-native generate-map",
    "prestart": "npm run generate-map",
    "prebuild": "npm run generate-map"
  }
}
Flag Description
--watch, -w Watch for file changes and auto-regenerate
--dir=./path Custom project directory

๐Ÿ’ก The generated ai-screen-map.json is committed to your repo โ€” no runtime cost.


Similar Packages

edgecrabEdgeCrab ๐Ÿฆ€ A Super Powerful Personal Assistant inspired by NousHermes and OpenClaw โ€” Rust-native, blazing-fast terminal UI, ReAct tool loop, multi-provider LLM support, ACP protocol, gateway adaptersv0.7.0
TomoriBotA highly customizable personal AI assistant for Discord featuring smart agentic AI features such as memory, personas, tool usage, and more! ๏ฝœ ้•ทๆœŸ่จ˜ๆ†ถใ‚„ใƒšใƒซใ‚ฝใƒŠใ€ใƒ„ใƒผใƒซ้€ฃๆบใ‚’ๅฎŒๅ‚™ใ€‚ ๆฌกไธ–ไปฃใฎใ€Œ่‡ชๅพ‹ๅž‹AIใ‚จใƒผใ‚ธใ‚งใƒณใƒˆใ€Discordใƒœใƒƒใƒˆ๏ผv0.7.904
DaemoraOpen-source AI agent - any LLM, any MCP server, any channel. Self-hosted, autonomous, multi-tenant.2026.1.0-beta.0
tweetsave-mcp๐Ÿ“ Fetch Twitter/X content and convert it into blog posts using the MCP server for seamless integration and easy content management.main@2026-04-21
Perplexity-Comet-MCPNo descriptionmain@2026-04-21