Logo: Expo Router App Store Card Transition

Expo Router App Store Card Transition

Communautéit
bidah
expo-router-app-store-card-transition

Build an App Store "Today"-style card that zooms into its own detail/article screen with expo-router's Link.AppleZoom, including the poster card UI (expo-image + blurhash placeholder, caption tinted with the image's own average colour) and the editorial destination screen. Use when adding a card-to-detail zoom transition, an App Store-like poster card, blurhash tinting, Link.AppleZoom / Link.AppleZoomTarget, or a Today-style article screen in an Expo app.

Iwwersiicht

Editeurbidah
Repositoryskill-set
Skill-Nummexpo-router-app-store-card-transition
Stären
276
Forks
32
Matgeliwwert Dateien
1
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    bidah huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Expo Router App Store Card Transition an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/bidah/skill-set/tree/main/skills/expo-router-app-store-card-transition
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Expo Router App Store Card Transition an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Expo Router App Store Card Transition automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Expo Router App Store Card Transition net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Expo Router App Store Card Transition?

Build an App Store "Today"-style card that zooms into its own detail/article screen with expo-router's Link.AppleZoom, including the poster card UI (expo-image + blurhash placeholder, caption tinted with the image's own average colour) and the editorial destination screen. Use when adding a card-to-detail zoom transition, an App Store-like poster card, blurhash tinting, Link.AppleZoom / Link.AppleZoomTarget, or a Today-style article screen in an Expo app.

Firwat Expo Router App Store Card Transition op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Expo Router App Store Card Transition besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Expo Router App Store Card Transition an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/bidah/skill-set/tree/main/skills/expo-router-app-store-card-transition an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Expo Router App Store Card Transition benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Expo Router App Store Card Transition benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Expo Router App Store Card Transition domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Expo Router App Store Card Transition gratis?

bidah huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇