setup-react-native-app

setup-react-native-app is a skill for Claude Code from phantom/phantom-agent-kit. It costs 30 tokens per session (802 once invoked), scanned A, original, MIT.

Instructions for creating a React Native mobile app with Expo and connecting it to Phantom, a cryptocurrency wallet service.

In plain words
What is it for?
Use it to start an iOS or Android app, install the required packages, configure deep links, and connect the app to Phantom.
Why use it?
It covers the setup details that mobile wallet integrations require, including cryptography support and links back to the wallet app.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the phantom-connect plugin — 8 skills, 2 agents, 2 MCP servers shipped together

Good fit Use it to start an iOS or Android app, install the required packages, configure deep links, and connect the app to Phantom.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phantom/phantom-agent-kit/setup-react-native-app
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add phantom/phantom-agent-kit --skill setup-react-native-app
Clone the repo
git clone --depth 1 https://github.com/phantom/phantom-agent-kit

Made for: Claude Code.

Or install phantom-connect, the plugin that ships this one along with the rest of its 8 skills, 2 agents, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-react-native-app

README.md
[![agentmods](https://agentmods.dev/badge/skills/phantom/phantom-agent-kit/setup-react-native-app/github.svg)](https://agentmods.dev/skills/phantom/phantom-agent-kit/setup-react-native-app)
Your own site
<a href="https://agentmods.dev/skills/phantom/phantom-agent-kit/setup-react-native-app"><img src="https://agentmods.dev/badge/skills/phantom/phantom-agent-kit/setup-react-native-app/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-react-native-app

Your own site · 80×15
<a href="https://agentmods.dev/skills/phantom/phantom-agent-kit/setup-react-native-app"><img src="https://agentmods.dev/badge/skills/phantom/phantom-agent-kit/setup-react-native-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 802 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00802
Opus 5.5 $0.00012 $0.00321
Sonnet 5.5 $0.00006 $0.00160
Haiku 4.5 $0.00003 $0.00080

Measured 2mo ago against content hash f2b2e8c2c793, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup-react-native-app scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/setup-react-native-app/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scaffold React Native App with Phantom Connect

When to use

  • User asks to set up a React Native app with Phantom Connect
  • User wants to create a mobile wallet integration
  • User wants to scaffold a Phantom integration for iOS/Android

Workflow

Step 1: Install Dependencies

npx expo install @phantom/react-native-sdk react-native-get-random-values @expo/browser expo-web-browser expo-crypto

Step 2: Add the Polyfill (CRITICAL — Must Be First Import)

In your app's entry file (e.g. App.tsx or index.ts), add this as the very first import:

import "react-native-get-random-values"; // MUST be the first import

import { PhantomProvider } from "@phantom/react-native-sdk";
// ... other imports

This is non-negotiable. The polyfill must execute before any other code that uses crypto.

Step 3: Configure app.json

Add the custom URL scheme and required plugins:

{
  "expo": {
    "scheme": "your-app-scheme",
    "plugins": [
      [
        "expo-web-browser"
      ]
    ]
  }
}

Step 4: Wrap App in PhantomProvider

import "react-native-get-random-values";

import { PhantomProvider } from "@phantom/react-native-sdk";

export default function App() {
  return (
    <PhantomProvider
      config={{
        appId: "your-app-id-from-phantom-portal",
        providers: ["google", "apple"],
        addressTypes: ["solana"],
        scheme: "your-app-scheme",
        redirectUrl: "your-app-scheme://callback",
      }}
    >
      <YourApp />
    </PhantomProvider>
  );
}

Mobile-specific config fields:

  • scheme — Your app's custom URL scheme, must match app.json.
  • redirectUrl — Deep link URL using your custom scheme for OAuth callbacks.

Step 5: Use Hooks (Same as React SDK)

The hooks API is identical to @phantom/react-sdk:

import {
  useConnect,
  useAccounts,
  useDisconnect,
  useSolana,
} from "@phantom/react-native-sdk";

function WalletScreen() {
  const { connect, isConnected } = useConnect();
  const { accounts } = useAccounts();
  const { disconnect } = useDisconnect();

  const handleConnect = async () => {
    try {
      await connect();
    } catch (error) {
      console.error("Connection failed:", error);
    }
  };

  if (!isConnected) {
    return <Button title="Connect" onPress={handleConnect} />;
  }

  const solanaAccount = accounts.find((a) => a.chain === "solana");

  return (
    <View>
      <Text>Address: {solanaAccount?.address}</Text>
      <Button title="Disconnect" onPress={disconnect} />
    </View>
  );
}

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 126 lines · 30 tokens per session scan A f2b2e8c2c793

Subscribe to this mod's changes

setup-react-native-app is a skill published in the GitHub repository phantom/phantom-agent-kit (23 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 802 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

setup-react-native-app compared with skills from other repositories

setup-react-native-app next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setup-react-native-appphantom/phantom-agent-kitSkill232mo agoMITA30Claude Code
amethystvitorpamplona/amethystSkill1.6kyesterdayMITC0Claude Code, Codex
bitcoin-infrastructure-bluewalletclaude-dev-suite/claude-dev-suiteSkill474d agoMITA59Claude Code
seeker-connectsolana-mobile/solana-mobile-skillsSkill816d agoApache-2.0A142Claude Code, Codex
solana-mobile-publishingsolana-mobile/solana-mobile-skillsSkill816d agoApache-2.0A76Claude Code, Codex
integration-privysolana-mobile/solana-mobile-skillsSkill816d agoApache-2.0A87Claude Code, Codex
solana-mobilesolana-mobile/solana-mobile-skillsSkill816d agoApache-2.0A89Claude Code, Codex