Expo Router App Store Card Transitionのロゴ

Expo Router App Store Card Transition

コミュニティ
bidah
expo-router-app-store-card-transition

expo-routerのLink.AppleZoomを使い、App Storeの「Today」風カードから、その詳細画面や記事画面へズームするUIを構築します。ポスターカードUI(expo-imageとblurhashプレースホルダー、画像自体の平均色で色付けしたキャプション)と、遷移先の編集記事画面も含みます。Expoアプリで、カードから詳細画面へのズーム遷移、App Store風のポスターカード、blurhashによる色付け、Link.AppleZoom / Link.AppleZoomTarget、またはToday風の記事画面を追加するときに使用します。

Add to TypingMind

概要

公開者bidah
リポジトリskill-set
スキル名expo-router-app-store-card-transition
スター
276
フォーク
32
同梱ファイル
1
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    bidahがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Expo Router App Store Card Transition」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/bidah/skill-set/tree/main/skills/expo-router-app-store-card-transition
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bidah/skill-set.git /tmp/skill-set
mkdir -p .claude/skills
cp -r /tmp/skill-set/skills/expo-router-app-store-card-transition .claude/skills/expo-router-app-store-card-transition
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでExpo Router App Store Card Transitionを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にExpo Router App Store Card Transitionを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Expo Router App Store Card Transitionは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

App Store card → article zoom (expo-router)

Three parts that only work as a set: a poster card, the zoom transition, and the article screen it lands on. Working reference implementation: mobile-app/src/components/chat/discover.tsx (card) and mobile-app/src/app/(tabs)/chat/discover/[slug].tsx (destination), with the tint library in mobile-app/src/lib/image-tint.ts.

Requirements

  • expo-router above v55 (this repo runs ~57.0.4, SDK 57) — Link.AppleZoom / Link.AppleZoomTarget don't exist in older routers.
  • expo-image — supplies the blurhash placeholder AND Image.generateBlurhashAsync for the tint.
  • iOS 18+ for the zoom itself. Off iOS (and on older iOS) the components are a passthrough: the press degrades to a plain stack push. Ship it anyway — nothing crashes, Android just pushes.

The transition — rules that are load-bearing

tsx
<Link href={{ pathname: '/discover/[slug]', params: { slug } }} asChild>
  <Pressable onPress={() => Haptics.selectionAsync().catch(() => {})}>
    <Link.AppleZoom>
      <View>{/* the WHOLE card — image + caption — as ONE child */}</View>
    </Link.AppleZoom>
  </Pressable>
</Link>
  1. <Link asChild> is required, not stylistic. The router threads the zoom through the HREF (it rewrites it with a source id the destination reads off its route params). router.push gets no zoom at all, and Link.AppleZoom throws without asChild.
  2. Link.AppleZoom takes exactly ONE child — more than one warns and renders nothing. Wrap the whole card in a single view; the card is what expands.
  3. Destination marks the landing rect with <Link.AppleZoomTarget> around its hero image — otherwise the card expands into the screen as a whole instead of the picture flying into place.
  4. No press-scale wrapper on the card (no BouncyPressable): a press-shrink transform fights the zoom for the same frame — the zoom IS the feedback. A plain Pressable with a selection haptic is enough. (Radix Slot composes handlers, so onPress runs alongside the Link's navigation press.)
  5. Build the card as a small copy of the destination — picture on top, text block below in the picture's own colour — so the zoom has something to land on and the colour continues across the transition.

The card (poster)

expo-image with the picture's own blurhash as placeholder (same crop, so one blurs UP into the other), cross-dissolve transition, caption block filled with the image's tint. Shadow on an outer wrapper; the card body uses overflow: 'hidden' for its corner radius (a clipping view drops its own shadow on iOS). Full code: REFERENCE.md.

The tint — one artefact, two jobs

A blurhash's first component (the DC term, base83 chars 2–6) is the image's average sRGB colour — so one Image.generateBlurhashAsync(uri, [4, 3]) yields the placeholder AND the palette. No native palette extractor, no second decode.

  • Parse the DC term with a ~20-line base83 decode (REFERENCE.md).
  • Mix the raw average 22% toward the page background (raw photo averages are washed mid-tones), then pick white / near-black text by sRGB luma > 0.6.
  • Cache hashes in a module Map + AsyncStorage so the second launch blurs-up before the image downloads. A first sight can't be blurred (hashing needs pixels) — ship a build-time hash (seed) for bundled/known heroes.

The article screen

  • Hero runs under the transparent header: contentInsetAdjustmentBehavior="never" on the ScrollView, Stack.Screen options={{ title: '' }} (the masthead below carries the headline; the bar keeps only chevron + menu).
  • Hero wrapped in Link.AppleZoomTarget, same URI + same useImageTint call as the card — the hash is already in the session cache, so the colour is there on the first frame of the zoom.
  • Tint the masthead only (kicker / title / standfirst). Body copy runs on the app's own page colours — three screens of text on an arbitrary photographic colour is illegible.
  • Editorial type scale, one step up from UI type; lead paragraph opens with a bold foreground-coloured phrase via a nested <Text> so both weights share one flowing line box. Full code: REFERENCE.md.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Expo Router App Store Card Transition」では何ができますか?

expo-routerのLink.AppleZoomを使い、App Storeの「Today」風カードから、その詳細画面や記事画面へズームするUIを構築します。ポスターカードUI(expo-imageとblurhashプレースホルダー、画像自体の平均色で色付けしたキャプション)と、遷移先の編集記事画面も含みます。Expoアプリで、カードから詳細画面へのズーム遷移、App Store風のポスターカード、blurhashによる色付け、Link.AppleZoom / Link.AppleZoomTarget、またはToday風の記事画面を追加するときに使用します。

TypingMindでExpo Router App Store Card Transitionを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Expo Router App Store Card Transitionはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにExpo Router App Store Card Transitionをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/bidah/skill-set/tree/main/skills/expo-router-app-store-card-transitionを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Expo Router App Store Card Transitionを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Expo Router App Store Card Transitionで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもExpo Router App Store Card Transitionを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Expo Router App Store Card Transition」は無料ですか?

bidahがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇