[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F25B86VPFSZN8NXDXBNDY7":3,"skill-same:01M7F25B86VPFSZN8NXDXBNDY7":302},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7F25B86VPFSZN8NXDXBNDY7","canvas-gestures-and-hit-testing",null,"Turns canvas taps, swipes, drags and aim into typed intents: one gesture module, hit-testing on the drawn layout. Use when a Skia canvas takes touch or a tap hits the wrong cell. Not for drawing (skia-canvas-rendering).","zakariaf\u002FReactNative-Skills","zakariaf","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2259803?v=4","01M7DEF0YMPS6Y6RQ4WGA0JH9R","Zakaria Fatahi","01M7F1VKYEK96M7SYJE1EPGD0A",13,"MIT","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: canvas-gestures-and-hit-testing\ndescription: \"Turns canvas taps, swipes, drags and aim into typed intents: one gesture module, hit-testing on the drawn layout. Use when a Skia canvas takes touch or a tap hits the wrong cell. Not for drawing (skia-canvas-rendering).\"\n---\n\n# Canvas gestures and hit-testing\n\nEvery touch on a hand-drawn canvas (a progress grid, a planner, a chart, a game board) goes through one\ngesture module, `useCanvasGestures`, which hit-tests against the same `CanvasLayout` the renderer draws\nwith and emits at most one typed `CanvasIntent` per gesture; the surface's pure `intentToAction(state,\nintent)` alone decides whether it becomes a domain action. This skill ships that input kit\n(`src\u002Fcanvas\u002Fgestures\u002F`), the shape of each surface's intent function and hit-targets test, and a\nchecker that proves both.\n\n## Rules that must hold\n\n1. **One gesture module builds every canvas gesture:** `src\u002Fcanvas\u002Fgestures\u002Fuse-canvas-gestures.ts`\n   (`Gesture.*` builders on Gesture Handler 2.x, hooks on 3.x). No builder or gesture hook in the canvas\n   kit, a surface folder, a file that renders a canvas or feeds one (a hook named in a canvas\n   `GestureDetector` or `SurfaceCanvas input`), or the feature folder of a canvas that takes touch. A\n   self-contained control there (a sheet's own `GestureDetector`) is ordinary UI; a gesture hook that is\n   ordinary UI is listed in `contracts\u002Fcanvas-input.json` `gestureExempt`. Why: a Gesture Handler major then rewrites one file, and no second gesture can\n   double-fire on a canvas.\n2. **One gesture yields at most one intent,** emitted in `onEnd` (`onStart` for long press), never in\n   `onUpdate`\u002F`onChange`; every pan has an `onFinalize` that resets the pointer (or the stick command).\n   Why: a drag that emitted per update would apply many actions, and a cancelled drag (a call, the\n   system back gesture) must not leave its preview behind.\n3. **Hit-testing uses the surface's shared layout with slop:** `hitTest(layout.get(), point,\n   HIT_SLOP)` on the derived layout the picture draws with (`useSurfacePlayer().layout`). Why: draw and\n   touch cannot drift at any canvas size, and taps on the outer edge still land.\n4. **Meaning and legality live only in the surface's pure intent function:** `intentToAction(state,\n   intent)` in the surface folder beside `to-view.ts` (a game surface: `intent-to-move.ts`,\n   `intentToMove`). It builds a candidate and returns it only when the domain's one source of truth\n   accepts it (`listActions(state)` lists it, or `validate(state, action)` passes), and imports no\n   React, React Native, Expo, Skia, store, service, API or UI value. Why: tests, undo, hints, bots and\n   replays share one definition of allowed, and a finished or locked state gives `null`.\n5. **The intent function handles every intent kind explicitly** (`tap`, `long-press`, `swipe`,\n   `drag-end`, `aim`), returning `null` for the kinds the surface ignores. Why: an exhaustive switch\n   turns a new kind into a compile error instead of a silent no-op.\n6. **A tap-then-tap selection is screen UI state, never domain state or an action.** The model hook\n   keeps it and passes it as `highlight.selected`; the gesture layer always sends `selected: null` and\n   the model hook fills it in; a tap inside a select region only selects; a miss or an applied action\n   clears it. Why: the store, undo, persistence, analytics and automated players never see a selection.\n7. **The drag lift is applied once, in the gesture layer** (`surface.dragLiftPt`, default 0), to the\n   hover, the drawn preview and the drop target; the intent function and `draw()` add none, and a\n   surface with a lift keeps that much canvas below its last row (`unreachableByDrag` proves it). Why:\n   the preview cell is then always the drop cell, and no edge row becomes unreachable.\n8. **Touches are physical.** Gesture code never reads the writing direction; a surface that mirrors in\n   right-to-left locales does it in its layout (regions mirrored as rectangles, never the touch point),\n   and swipe directions stay physical. Why: `event.x\u002Fy` do not mirror under RTL (verified on iOS), so\n   flipping again sends touches to the wrong cell.\n9. **Per-frame finger state stays on the UI thread:** the `pointer` shared value feeds the picture\n   (`frame.fx.pointer`); only hover changes cross to JS, behind `isSameTarget`. Why: a React render\n   per finger move cannot fit a 120 Hz frame (8.3 ms).\n10. **Every tappable region is at least `MIN_TOUCH_PT` on the smallest supported canvas,** proven by\n    a hit-targets test with `smallestTargetPt`; `MIN_TOUCH_PT` follows `quality-gates.json`\n    `a11y.minTouchPt` (44 pt; 48 for Material-sized Android designs). Fix the layout, never the test,\n    never `hitSlop`. Why: accessibility-as-code's target minimum applies to canvas cells too.\n11. **No React Native touch on a canvas, and the app's outermost view is `GestureHandlerRootView`.** No\n    Pressable, Touchable or button inside a canvas `GestureDetector` or around a `\u003CCanvas>`\u002F`\u003CSurfaceCanvas>`,\n    and no `onPress*`\u002F`onLongPress`\u002F`onTouch*`\u002F`onResponder*` on the canvas or on the element that directly\n    wraps it; a whole-card press around a display-only canvas is an ordinary control, listed in\n    `gestureExempt`. Why: React Native's touch system hit-tests on its own (no shared layout, no slop, no\n    single intent) and competes with Gesture Handler; without the root view no gesture fires on a device.\n12. **Everything a gesture callback calls is a `'worklet'` module** (`classify-swipe.ts`,\n    `stick-command.ts`, `pan-intent.ts`, the kit's `canvas-layout.ts`) importing values only from other\n    `'worklet'` modules; JS is reached with `scheduleOnRN` (never `runOnJS`), shared values with\n    `.get()`\u002F`.set()` (never `.value`). Why: a plain function throws on the UI thread on a device while\n    every Jest test passes, and React Compiler needs the accessors.\n13. **Gesture Handler follows the Expo SDK's pin** (`npx expo install`; ~2.32.0 on SDK 57): the builder\n    API on 2.x, the hook API on 3.x, never mixed, the gesture module migrated whole. Why: the 3.x\n    composition hooks accept only 3.x gestures.\n14. **Continuous values are quantised before they enter state:** an aim vector becomes integers\n    (thousandths of a unit vector, `Math.sqrt` only) inside the intent function. Why: saves stay\n    compact and replays exact on every device.\n15. **Continuous input for a simulation is an integer stick command** (games): 0 idle, 1 to 16 by the\n    largest dot product with a committed table, a 12 pt dead zone, written only on change, 0 on lift.\n    Why: a fixed-step simulation replays bit-exactly only from integer `(tick, command)` logs.\n16. **Pans stay clear of the system back gestures:** the stack screen of a canvas that reads\n    horizontal swipes or drags sets `fullScreenGestureEnabled: false` (iOS 26 turns full-screen back on\n    by default) and the canvas keeps off the side edges (iOS edge swipe, Android gesture navigation).\n    Why: the system claims those swipes first, so the move goes back instead.\n17. **A hold-only action has a non-hold alternative** (a mode toggle on the screen, or an\n    accessibility action on the canvas). Why: VoiceOver and TalkBack users cannot aim a hold at a cell.\n\n## Workflow\n\n1. **Read [references\u002Finput-pipeline.md](references\u002Finput-pipeline.md)** and pick the surface's pan\n   mode (`none`, `swipe`, `drag`, `aim`; a simulation uses the stick,\n   [references\u002Fstick-input.md](references\u002Fstick-input.md)). Input needs the canvas kit's\n   `src\u002Fcanvas\u002Fcanvas-layout.ts` and `canvas-types.ts`: when they are missing, set the kit up with\n   `skia-canvas-rendering` first (this skill's `templates\u002Fsrc\u002Fcanvas\u002F` holds identical synced copies).\n2. **Copy the input kit.** Copy `templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002F` to `src\u002Fcanvas\u002Fgestures\u002F` verbatim,\n   and `templates\u002Fcontracts\u002Fcanvas-input.json` with its schema to `contracts\u002F` (replace `__FEATURE__`\n   and `__SURFACE__`, list `buttonComponents`). Make `GestureHandlerRootView` the app's outermost view\n   (input-pipeline.md, \"The root view\"). Run `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-canvas-input.mjs .`:\n   it names every missing piece.\n3. **Write the intent function test-first.** Read\n   [references\u002Fintent-to-action.md](references\u002Fintent-to-action.md) and shape it like\n   [examples\u002Fprogress-grid\u002F](examples\u002Fprogress-grid\u002F) (tap to act),\n   [examples\u002Finbox-planner\u002F](examples\u002Finbox-planner\u002F) (drag with a lift, tap-then-tap),\n   [examples\u002Fsliding-puzzle\u002F](examples\u002Fsliding-puzzle\u002F) (swipe) or\n   [examples\u002Farena-aim\u002F](examples\u002Farena-aim\u002F) (aim). Keep the finished-state, ignored-kind and\n   legality-property tests. A game surface keeps `intent-to-move.ts` in its canvas folder (game rules\n   cannot import the canvas kit); games may import `src\u002Fcanvas\u002F**` by default\n   (architecture-and-boundaries' `gameFacing` defaults), so no contract entry is needed.\n4. **Prove touch targets.** Write the surface's `hit-targets.test.ts` like the examples: the largest\n   view laid out on the smallest supported canvas, `smallestTargetPt(layout) >= MIN_TOUCH_PT`, and with\n   a lift `unreachableByDrag(layout, edgeRowTargets(...), DRAG_LIFT_PT)` empty on portrait and wide\n   canvases. A region below the minimum changes the layout, not the test.\n5. **Wire the screen.** The feature's model hook calls `useCanvasGestures(player.layout, { panMode,\n   dragLiftPt: surface.dragLiftPt ?? 0, onIntent, onHover, onMiss })`, keeps the selection, dispatches\n   non-null actions and hands `input` and `highlight` to `\u003CSurfaceCanvas>`\n   ([examples\u002Fprogress-grid\u002Fuse-progress-grid-input.ts](examples\u002Fprogress-grid\u002Fuse-progress-grid-input.ts)).\n   Set the stack screen's gesture options (rule 16) in the route's layout.\n6. **Run the tests:** `npx jest src\u002Fcanvas\u002Fgestures src\u002Ffeatures\u002F\u003Cfeature> --ci --selectProjects unit`\n   (paths first: `--selectProjects` takes several values and would swallow them). Gesture tests follow\n   [references\u002Ftesting-gestures.md](references\u002Ftesting-gestures.md).\n7. **Lint, format and type-check:** `npx eslint --fix` and `npx prettier --write` on the new files, then\n   `npm run typecheck`.\n8. **Run the check** `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-canvas-input.mjs .` (or `--surface \u003Cid>`\n   to limit the surface side), fix every `FAIL` line (each names the file, the rule and the fix) and\n   rerun until it prints `RESULT: PASS`.\n9. **Touch it for real** on a named iOS simulator and a named Android emulator (testing-gestures.md,\n   \"On devices\"): tap the outer cells, drag to the edge rows, cancel a drag mid-way, try tap-then-tap,\n   switch to an RTL locale, swipe near the screen edges, and use the non-hold alternative with\n   VoiceOver and TalkBack. When the Expo SDK moves Gesture Handler, follow\n   [references\u002Fgesture-handler-versions.md](references\u002Fgesture-handler-versions.md).\n\n## Definition of done\n\n- [ ] `src\u002Fcanvas\u002Fgestures\u002F` holds the kit and `npx jest src\u002Fcanvas\u002Fgestures --ci --selectProjects unit`\n      passes: tap → cell with `selected: null`, a miss → `onMiss`, drag → one `drag-end`, a cancelled\n      drag → nothing, swipe → one direction, hover on change only, a lifted drag's hover and drop on\n      one cell, long press → cell, stick → integer commands, touch-target helpers.\n- [ ] Each surface that takes touch has its pure intent function in the surface folder, listing every\n      intent kind and returning only actions the domain accepts; its test covers each used kind,\n      illegal targets, ignored kinds, a finished or locked state and a legality property (plus\n      select-region taps and drag ≡ tap-then-tap for a selecting surface).\n- [ ] Each tappable surface's `hit-targets.test.ts` proves `MIN_TOUCH_PT` on the smallest supported\n      canvas, and a surface with a drag lift proves every edge row reachable on portrait and wide canvases.\n- [ ] No gesture outside the gesture module in the canvas scope, no button inside a canvas\n      `GestureDetector`, no React Native touch on a canvas, `GestureHandlerRootView` outermost, and the canvas screen's stack options keep\n      the system back gestures off horizontal pans (checked on both platforms).\n- [ ] `npm run typecheck`, `npx eslint --max-warnings 0` and `npx prettier --check` pass; no\n      `__PLACEHOLDER__` is left.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-canvas-input.mjs .` prints `RESULT: PASS`\n\nThe checker prints one SKIP only while the root layout does not exist yet\n(`SKIP src\u002Fapp\u002F_layout.tsx [gesture-root] not yet created (app-startup-and-bootstrap creates it)`),\nand `NOT APPLICABLE` when no canvas takes touch (no input kit, no contract surface, no surface with an\nintent file or a `useCanvasGestures` caller, no `SurfaceCanvas` input, no gesture and no React Native\ntouch in the canvas scope); a contract holding only `gestureExempt` or `buttonComponents` asks for nothing.\n\n## Anti-patterns\n\n- **A `Gesture.Tap()` in a feature component or screen around the canvas.** It skips hit-testing and the\n  one-intent rule; add a mode to `use-canvas-gestures.ts` and consume its intents.\n- **A `select-*` action or a `selected` field in the store for tap-then-tap.** Undo, persistence and bots\n  see it; keep it in the model hook, list the region in `SELECT_REGIONS`, read `intent.selected`.\n- **Adding a lift in the intent function or in `draw()` (`row - 1`).** The preview and the drop drift\n  apart and an edge row becomes unreachable; set `dragLiftPt` on the surface.\n- **Checking legality in a gesture worklet.** The domain cannot run there safely and bots would\n  disagree with fingers; return the intent and let the intent function decide.\n- **Emitting intents from `onUpdate` \"for responsiveness\".** One drag becomes many actions; show\n  responsiveness through the pointer preview and emit on release.\n- **Mirroring `event.x` for right-to-left.** The layout already mirrors surfaces that opt in.\n- **Storing a raw gesture float (an angle, a velocity) in state.** Quantise it to integers first.\n- **Growing hit areas with `hitSlop` or shrinking the test's grid to reach 44 pt.** Fix the layout; the\n  slop is the fixed 8 pt `HIT_SLOP` of hit-testing, not a substitute for size.\n- **Spying on a mocked shared value** (`jest.spyOn(sv, 'set')`): the mock's members are read-only;\n  pass a recording stand-in.\n- **A new helper for a gesture callback in a plain module.** Every Jest test passes and the first touch\n  on a device throws; put it in a `'worklet'` module.\n- **Mixing 3.x hooks with 2.x builders during an upgrade.** They cannot compose; migrate the module whole.\n- **A `Pressable` around the canvas, or `onTouchStart` on it, \"just for one tap\".** It hit-tests beside\n  the layout and double-fires with the gesture module; add the mode to `use-canvas-gestures.ts`.\n- **An inline `style={{ flex: 1 }}` on `GestureHandlerRootView`.** The canonical lint bans inline\n  styles; use a `StyleSheet` style.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Finput-pipeline.md](references\u002Finput-pipeline.md) | The pipeline, `CanvasIntent`, hit-testing, composition and thresholds, pan modes, pointer and drag lift, RTL, touch targets, the root view, the detector and React Native touch on a canvas, system back gestures on iOS and Android, accessibility and E2E taps, the contract and config keys, When multi-package | Workflow step 1, before any input work |\n| [references\u002Fintent-to-action.md](references\u002Fintent-to-action.md) | Rules for the intent function, the two legality forms, patterns (tap, drag with a lift, tap-then-tap, swipe, aim, long press), wiring the screen, games, tests | Steps 3 and 5 |\n| [references\u002Ftesting-gestures.md](references\u002Ftesting-gestures.md) | Jest set-up, what each test proves, driving gestures, mock traps, checks on named iOS simulators and Android emulators | Step 6, step 9, and when a gesture test misbehaves |\n| [references\u002Fstick-input.md](references\u002Fstick-input.md) | Integer stick commands for simulations and their tests | Step 1 for real-time games |\n| [references\u002Fgesture-handler-versions.md](references\u002Fgesture-handler-versions.md) | Gesture Handler 2.32 today, the 3.x hook mapping (verified on 3.2.1) and the one-file migration | When the Expo SDK moves Gesture Handler, or when reading 3.x examples |\n| `templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002F` | The input kit: `canvas-intent.ts`, `classify-swipe.ts`, `pan-intent.ts`, `stick-command.ts`, `touch-targets.ts`, `use-canvas-gestures.ts`, the two test probes, and a test for each module | Step 2 (copy verbatim) |\n| `templates\u002Fsrc\u002Fcanvas\u002F` (other files) | `canvas-layout.ts` (+ test), `canvas-types.ts`, `timeline\u002F` (+ test): synced canonical copies of the canvas kit's contract files (skia-canvas-rendering owns them) | Step 1, only when the app has no canvas kit yet |\n| `templates\u002Fcontracts\u002F` | `canvas-input.json` (the surfaces that take touch, button components, exemptions) and its JSON schema | Step 2 |\n| [examples\u002Fprogress-grid\u002F](examples\u002Fprogress-grid\u002F) | Tasks progress grid: tap to toggle a day; `intent-to-action.ts` (+ test), `progress-grid-rules.ts` (the legality list), `hit-targets.test.ts`, `use-progress-grid-input.ts` (the screen wiring) | Steps 3 to 5 |\n| [examples\u002Finbox-planner\u002F](examples\u002Finbox-planner\u002F) | Drag an inbox task onto a day, or tap-then-tap; a drag lift with edge-row proofs on portrait and wide canvases | Steps 3 and 4, for drag and selection |\n| [examples\u002Fsliding-puzzle\u002F](examples\u002Fsliding-puzzle\u002F) | Games: swipe to slide (the 15-puzzle), rules in `rules\u002F`, `intentToMove` in the surface folder | Step 3, for swipe surfaces |\n| [examples\u002Farena-aim\u002F](examples\u002Farena-aim\u002F) | Games: pull back and release, aim quantised to integers, with a property test | Step 3, for aim surfaces |\n| `scripts\u002Fcheck-canvas-input.mjs` | Checks the kit, its worklets, the one gesture module, test ids, single intents, hover on change, pan finalize, slop, physical coordinates, detector children, React Native touch on a canvas (`canvas-rn-touch`), the root view, the intent function (present, tested, pure, exhaustive), touch-target tests and gate, the API version and the Worklets API | Steps 2 and 8, and at the end |\n| `scripts\u002Flib\u002Finput-scope.mjs` | Where the checker looks: layout, config keys, the contract, surfaces and which take touch | When changing the checker |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Synced source helpers (masking, JSX tags, imports, worklet directive) | When changing the checker |\n| `scripts\u002Fcheck-lib.mjs` | The shared script library (synced; never edit here) | Never by hand |\n| `scripts\u002Fselftest.mjs` | Proves the checker passes the templates and examples and catches each planted bug | After changing the checker, a template or an example |\n| `tests\u002Fbases\u002Fapp\u002F` | Fixture base: stand-ins for files other skills own (the root layout, `SurfaceCanvas`, the progress-grid model, view, layout and surface, the screen and model hook), `package.json`, `quality-gates.json` | When changing a fixture |\n| `tests\u002Ffixtures\u002F` | One overlay suite: `good\u002F` plus one planted bug per case (`mutation.json` or `DELETE.txt`, `EXPECT.txt`) | When adding a rule to the checker |\n| `assets\u002Fshared.json` | The shared files this skill copies in | When adding a shared file |\n| `assets\u002Ftemplate-placeholders.json` | The placeholder values the template checks fill in (`tasks`, `progress-grid`) | When renaming the template surface |\n\n## Related skills\n\n- `skia-canvas-rendering` - the picture, `CanvasLayout`, `PointerSample`, `SurfaceCanvas` and the drag preview this skill feeds (load both for an interactive canvas).\n- `accessibility-as-code` - the touch-target minimum, hold alternatives and the canvas's spoken summary.\n- `unit-and-component-tests` - the Jest projects, `jest.setup.ts` and test forms the gesture tests follow.\n- `naming-conventions` - testID grammar and kebab-case kinds.\n- `state-management-zustand` - the store whose dispatch receives the actions.\n- `react-components-and-hooks` - model hooks and React Compiler rules for the wiring.\n- `app-startup-and-bootstrap` - the root layout that holds `GestureHandlerRootView`.\n- `navigation-and-routing` - stack screen options for back gestures.\n- `rtl-and-direction` - which surfaces mirror and how direction switches.\n- `e2e-maestro` - tapping canvas cells from the published layout on both platforms.\n- `realtime-game-loop` - the fixed-step loop that consumes stick commands.\n- `game-rules-engine` and `game-session-host` - `listMoves`, hints and the game screen.\n- `expo-sdk-upgrade` - the SDK move that brings Gesture Handler 3.\n","# Canvas gestures and hit-testing\n\nEvery touch on a hand-drawn canvas (a progress grid, a planner, a chart, a game board) goes through one\ngesture module, `useCanvasGestures`, which hit-tests against the same `CanvasLayout` the renderer draws\nwith and emits at most one typed `CanvasIntent` per gesture; the surface's pure `intentToAction(state,\nintent)` alone decides whether it becomes a domain action. This skill ships that input kit\n(`src\u002Fcanvas\u002Fgestures\u002F`), the shape of each surface's intent function and hit-targets test, and a\nchecker that proves both.\n\n## Rules that must hold\n\n1. **One gesture module builds every canvas gesture:** `src\u002Fcanvas\u002Fgestures\u002Fuse-canvas-gestures.ts`\n   (`Gesture.*` builders on Gesture Handler 2.x, hooks on 3.x). No builder or gesture hook in the canvas\n   kit, a surface folder, a file that renders a canvas or feeds one (a hook named in a canvas\n   `GestureDetector` or `SurfaceCanvas input`), or the feature folder of a canvas that takes touch. A\n   self-contained control there (a sheet's own `GestureDetector`) is ordinary UI; a gesture hook that is\n   ordinary UI is listed in `contracts\u002Fcanvas-input.json` `gestureExempt`. Why: a Gesture Handler major then rewrites one file, and no second gesture can\n   double-fire on a canvas.\n2. **One gesture yields at most one intent,** emitted in `onEnd` (`onStart` for long press), never in\n   `onUpdate`\u002F`onChange`; every pan has an `onFinalize` that resets the pointer (or the stick command).\n   Why: a drag that emitted per update would apply many actions, and a cancelled drag (a call, the\n   system back gesture) must not leave its preview behind.\n3. **Hit-testing uses the surface's shared layout with slop:** `hitTest(layout.get(), point,\n   HIT_SLOP)` on the derived layout the picture draws with (`useSurfacePlayer().layout`). Why: draw and\n   touch cannot drift at any canvas size, and taps on the outer edge still land.\n4. **Meaning and legality live only in the surface's pure intent function:** `intentToAction(state,\n   intent)` in the surface folder beside `to-view.ts` (a game surface: `intent-to-move.ts`,\n   `intentToMove`). It builds a candidate and returns it only when the domain's one source of truth\n   accepts it (`listActions(state)` lists it, or `validate(state, action)` passes), and imports no\n   React, React Native, Expo, Skia, store, service, API or UI value. Why: tests, undo, hints, bots and\n   replays share one definition of allowed, and a finished or locked state gives `null`.\n5. **The intent function handles every intent kind explicitly** (`tap`, `long-press`, `swipe`,\n   `drag-end`, `aim`), returning `null` for the kinds the surface ignores. Why: an exhaustive switch\n   turns a new kind into a compile error instead of a silent no-op.\n6. **A tap-then-tap selection is screen UI state, never domain state or an action.** The model hook\n   keeps it and passes it as `highlight.selected`; the gesture layer always sends `selected: null` and\n   the model hook fills it in; a tap inside a select region only selects; a miss or an applied action\n   clears it. Why: the store, undo, persistence, analytics and automated players never see a selection.\n7. **The drag lift is applied once, in the gesture layer** (`surface.dragLiftPt`, default 0), to the\n   hover, the drawn preview and the drop target; the intent function and `draw()` add none, and a\n   surface with a lift keeps that much canvas below its last row (`unreachableByDrag` proves it). Why:\n   the preview cell is then always the drop cell, and no edge row becomes unreachable.\n8. **Touches are physical.** Gesture code never reads the writing direction; a surface that mirrors in\n   right-to-left locales does it in its layout (regions mirrored as rectangles, never the touch point),\n   and swipe directions stay physical. Why: `event.x\u002Fy` do not mirror under RTL (verified on iOS), so\n   flipping again sends touches to the wrong cell.\n9. **Per-frame finger state stays on the UI thread:** the `pointer` shared value feeds the picture\n   (`frame.fx.pointer`); only hover changes cross to JS, behind `isSameTarget`. Why: a React render\n   per finger move cannot fit a 120 Hz frame (8.3 ms).\n10. **Every tappable region is at least `MIN_TOUCH_PT` on the smallest supported canvas,** proven by\n    a hit-targets test with `smallestTargetPt`; `MIN_TOUCH_PT` follows `quality-gates.json`\n    `a11y.minTouchPt` (44 pt; 48 for Material-sized Android designs). Fix the layout, never the test,\n    never `hitSlop`. Why: accessibility-as-code's target minimum applies to canvas cells too.\n11. **No React Native touch on a canvas, and the app's outermost view is `GestureHandlerRootView`.** No\n    Pressable, Touchable or button inside a canvas `GestureDetector` or around a `\u003CCanvas>`\u002F`\u003CSurfaceCanvas>`,\n    and no `onPress*`\u002F`onLongPress`\u002F`onTouch*`\u002F`onResponder*` on the canvas or on the element that directly\n    wraps it; a whole-card press around a display-only canvas is an ordinary control, listed in\n    `gestureExempt`. Why: React Native's touch system hit-tests on its own (no shared layout, no slop, no\n    single intent) and competes with Gesture Handler; without the root view no gesture fires on a device.\n12. **Everything a gesture callback calls is a `'worklet'` module** (`classify-swipe.ts`,\n    `stick-command.ts`, `pan-intent.ts`, the kit's `canvas-layout.ts`) importing values only from other\n    `'worklet'` modules; JS is reached with `scheduleOnRN` (never `runOnJS`), shared values with\n    `.get()`\u002F`.set()` (never `.value`). Why: a plain function throws on the UI thread on a device while\n    every Jest test passes, and React Compiler needs the accessors.\n13. **Gesture Handler follows the Expo SDK's pin** (`npx expo install`; ~2.32.0 on SDK 57): the builder\n    API on 2.x, the hook API on 3.x, never mixed, the gesture module migrated whole. Why: the 3.x\n    composition hooks accept only 3.x gestures.\n14. **Continuous values are quantised before they enter state:** an aim vector becomes integers\n    (thousandths of a unit vector, `Math.sqrt` only) inside the intent function. Why: saves stay\n    compact and replays exact on every device.\n15. **Continuous input for a simulation is an integer stick command** (games): 0 idle, 1 to 16 by the\n    largest dot product with a committed table, a 12 pt dead zone, written only on change, 0 on lift.\n    Why: a fixed-step simulation replays bit-exactly only from integer `(tick, command)` logs.\n16. **Pans stay clear of the system back gestures:** the stack screen of a canvas that reads\n    horizontal swipes or drags sets `fullScreenGestureEnabled: false` (iOS 26 turns full-screen back on\n    by default) and the canvas keeps off the side edges (iOS edge swipe, Android gesture navigation).\n    Why: the system claims those swipes first, so the move goes back instead.\n17. **A hold-only action has a non-hold alternative** (a mode toggle on the screen, or an\n    accessibility action on the canvas). Why: VoiceOver and TalkBack users cannot aim a hold at a cell.\n\n## Workflow\n\n1. **Read [references\u002Finput-pipeline.md](references\u002Finput-pipeline.md)** and pick the surface's pan\n   mode (`none`, `swipe`, `drag`, `aim`; a simulation uses the stick,\n   [references\u002Fstick-input.md](references\u002Fstick-input.md)). Input needs the canvas kit's\n   `src\u002Fcanvas\u002Fcanvas-layout.ts` and `canvas-types.ts`: when they are missing, set the kit up with\n   `skia-canvas-rendering` first (this skill's `templates\u002Fsrc\u002Fcanvas\u002F` holds identical synced copies).\n2. **Copy the input kit.** Copy `templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002F` to `src\u002Fcanvas\u002Fgestures\u002F` verbatim,\n   and `templates\u002Fcontracts\u002Fcanvas-input.json` with its schema to `contracts\u002F` (replace `__FEATURE__`\n   and `__SURFACE__`, list `buttonComponents`). Make `GestureHandlerRootView` the app's outermost view\n   (input-pipeline.md, \"The root view\"). Run `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-canvas-input.mjs .`:\n   it names every missing piece.\n3. **Write the intent function test-first.** Read\n   [references\u002Fintent-to-action.md](references\u002Fintent-to-action.md) and shape it like\n   [examples\u002Fprogress-grid\u002F](examples\u002Fprogress-grid\u002F) (tap to act),\n   [examples\u002Finbox-planner\u002F](examples\u002Finbox-planner\u002F) (drag with a lift, tap-then-tap),\n   [examples\u002Fsliding-puzzle\u002F](examples\u002Fsliding-puzzle\u002F) (swipe) or\n   [examples\u002Farena-aim\u002F](examples\u002Farena-aim\u002F) (aim). Keep the finished-state, ignored-kind and\n   legality-property tests. A game surface keeps `intent-to-move.ts` in its canvas folder (game rules\n   cannot import the canvas kit); games may import `src\u002Fcanvas\u002F**` by default\n   (architecture-and-boundaries' `gameFacing` defaults), so no contract entry is needed.\n4. **Prove touch targets.** Write the surface's `hit-targets.test.ts` like the examples: the largest\n   view laid out on the smallest supported canvas, `smallestTargetPt(layout) >= MIN_TOUCH_PT`, and with\n   a lift `unreachableByDrag(layout, edgeRowTargets(...), DRAG_LIFT_PT)` empty on portrait and wide\n   canvases. A region below the minimum changes the layout, not the test.\n5. **Wire the screen.** The feature's model hook calls `useCanvasGestures(player.layout, { panMode,\n   dragLiftPt: surface.dragLiftPt ?? 0, onIntent, onHover, onMiss })`, keeps the selection, dispatches\n   non-null actions and hands `input` and `highlight` to `\u003CSurfaceCanvas>`\n   ([examples\u002Fprogress-grid\u002Fuse-progress-grid-input.ts](examples\u002Fprogress-grid\u002Fuse-progress-grid-input.ts)).\n   Set the stack screen's gesture options (rule 16) in the route's layout.\n6. **Run the tests:** `npx jest src\u002Fcanvas\u002Fgestures src\u002Ffeatures\u002F\u003Cfeature> --ci --selectProjects unit`\n   (paths first: `--selectProjects` takes several values and would swallow them). Gesture tests follow\n   [references\u002Ftesting-gestures.md](references\u002Ftesting-gestures.md).\n7. **Lint, format and type-check:** `npx eslint --fix` and `npx prettier --write` on the new files, then\n   `npm run typecheck`.\n8. **Run the check** `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-canvas-input.mjs .` (or `--surface \u003Cid>`\n   to limit the surface side), fix every `FAIL` line (each names the file, the rule and the fix) and\n   rerun until it prints `RESULT: PASS`.\n9. **Touch it for real** on a named iOS simulator and a named Android emulator (testing-gestures.md,\n   \"On devices\"): tap the outer cells, drag to the edge rows, cancel a drag mid-way, try tap-then-tap,\n   switch to an RTL locale, swipe near the screen edges, and use the non-hold alternative with\n   VoiceOver and TalkBack. When the Expo SDK moves Gesture Handler, follow\n   [references\u002Fgesture-handler-versions.md](references\u002Fgesture-handler-versions.md).\n\n## Definition of done\n\n- [ ] `src\u002Fcanvas\u002Fgestures\u002F` holds the kit and `npx jest src\u002Fcanvas\u002Fgestures --ci --selectProjects unit`\n      passes: tap → cell with `selected: null`, a miss → `onMiss`, drag → one `drag-end`, a cancelled\n      drag → nothing, swipe → one direction, hover on change only, a lifted drag's hover and drop on\n      one cell, long press → cell, stick → integer commands, touch-target helpers.\n- [ ] Each surface that takes touch has its pure intent function in the surface folder, listing every\n      intent kind and returning only actions the domain accepts; its test covers each used kind,\n      illegal targets, ignored kinds, a finished or locked state and a legality property (plus\n      select-region taps and drag ≡ tap-then-tap for a selecting surface).\n- [ ] Each tappable surface's `hit-targets.test.ts` proves `MIN_TOUCH_PT` on the smallest supported\n      canvas, and a surface with a drag lift proves every edge row reachable on portrait and wide canvases.\n- [ ] No gesture outside the gesture module in the canvas scope, no button inside a canvas\n      `GestureDetector`, no React Native touch on a canvas, `GestureHandlerRootView` outermost, and the canvas screen's stack options keep\n      the system back gestures off horizontal pans (checked on both platforms).\n- [ ] `npm run typecheck`, `npx eslint --max-warnings 0` and `npx prettier --check` pass; no\n      `__PLACEHOLDER__` is left.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-canvas-input.mjs .` prints `RESULT: PASS`\n\nThe checker prints one SKIP only while the root layout does not exist yet\n(`SKIP src\u002Fapp\u002F_layout.tsx [gesture-root] not yet created (app-startup-and-bootstrap creates it)`),\nand `NOT APPLICABLE` when no canvas takes touch (no input kit, no contract surface, no surface with an\nintent file or a `useCanvasGestures` caller, no `SurfaceCanvas` input, no gesture and no React Native\ntouch in the canvas scope); a contract holding only `gestureExempt` or `buttonComponents` asks for nothing.\n\n## Anti-patterns\n\n- **A `Gesture.Tap()` in a feature component or screen around the canvas.** It skips hit-testing and the\n  one-intent rule; add a mode to `use-canvas-gestures.ts` and consume its intents.\n- **A `select-*` action or a `selected` field in the store for tap-then-tap.** Undo, persistence and bots\n  see it; keep it in the model hook, list the region in `SELECT_REGIONS`, read `intent.selected`.\n- **Adding a lift in the intent function or in `draw()` (`row - 1`).** The preview and the drop drift\n  apart and an edge row becomes unreachable; set `dragLiftPt` on the surface.\n- **Checking legality in a gesture worklet.** The domain cannot run there safely and bots would\n  disagree with fingers; return the intent and let the intent function decide.\n- **Emitting intents from `onUpdate` \"for responsiveness\".** One drag becomes many actions; show\n  responsiveness through the pointer preview and emit on release.\n- **Mirroring `event.x` for right-to-left.** The layout already mirrors surfaces that opt in.\n- **Storing a raw gesture float (an angle, a velocity) in state.** Quantise it to integers first.\n- **Growing hit areas with `hitSlop` or shrinking the test's grid to reach 44 pt.** Fix the layout; the\n  slop is the fixed 8 pt `HIT_SLOP` of hit-testing, not a substitute for size.\n- **Spying on a mocked shared value** (`jest.spyOn(sv, 'set')`): the mock's members are read-only;\n  pass a recording stand-in.\n- **A new helper for a gesture callback in a plain module.** Every Jest test passes and the first touch\n  on a device throws; put it in a `'worklet'` module.\n- **Mixing 3.x hooks with 2.x builders during an upgrade.** They cannot compose; migrate the module whole.\n- **A `Pressable` around the canvas, or `onTouchStart` on it, \"just for one tap\".** It hit-tests beside\n  the layout and double-fires with the gesture module; add the mode to `use-canvas-gestures.ts`.\n- **An inline `style={{ flex: 1 }}` on `GestureHandlerRootView`.** The canonical lint bans inline\n  styles; use a `StyleSheet` style.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Finput-pipeline.md](references\u002Finput-pipeline.md) | The pipeline, `CanvasIntent`, hit-testing, composition and thresholds, pan modes, pointer and drag lift, RTL, touch targets, the root view, the detector and React Native touch on a canvas, system back gestures on iOS and Android, accessibility and E2E taps, the contract and config keys, When multi-package | Workflow step 1, before any input work |\n| [references\u002Fintent-to-action.md](references\u002Fintent-to-action.md) | Rules for the intent function, the two legality forms, patterns (tap, drag with a lift, tap-then-tap, swipe, aim, long press), wiring the screen, games, tests | Steps 3 and 5 |\n| [references\u002Ftesting-gestures.md](references\u002Ftesting-gestures.md) | Jest set-up, what each test proves, driving gestures, mock traps, checks on named iOS simulators and Android emulators | Step 6, step 9, and when a gesture test misbehaves |\n| [references\u002Fstick-input.md](references\u002Fstick-input.md) | Integer stick commands for simulations and their tests | Step 1 for real-time games |\n| [references\u002Fgesture-handler-versions.md](references\u002Fgesture-handler-versions.md) | Gesture Handler 2.32 today, the 3.x hook mapping (verified on 3.2.1) and the one-file migration | When the Expo SDK moves Gesture Handler, or when reading 3.x examples |\n| `templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002F` | The input kit: `canvas-intent.ts`, `classify-swipe.ts`, `pan-intent.ts`, `stick-command.ts`, `touch-targets.ts`, `use-canvas-gestures.ts`, the two test probes, and a test for each module | Step 2 (copy verbatim) |\n| `templates\u002Fsrc\u002Fcanvas\u002F` (other files) | `canvas-layout.ts` (+ test), `canvas-types.ts`, `timeline\u002F` (+ test): synced canonical copies of the canvas kit's contract files (skia-canvas-rendering owns them) | Step 1, only when the app has no canvas kit yet |\n| `templates\u002Fcontracts\u002F` | `canvas-input.json` (the surfaces that take touch, button components, exemptions) and its JSON schema | Step 2 |\n| [examples\u002Fprogress-grid\u002F](examples\u002Fprogress-grid\u002F) | Tasks progress grid: tap to toggle a day; `intent-to-action.ts` (+ test), `progress-grid-rules.ts` (the legality list), `hit-targets.test.ts`, `use-progress-grid-input.ts` (the screen wiring) | Steps 3 to 5 |\n| [examples\u002Finbox-planner\u002F](examples\u002Finbox-planner\u002F) | Drag an inbox task onto a day, or tap-then-tap; a drag lift with edge-row proofs on portrait and wide canvases | Steps 3 and 4, for drag and selection |\n| [examples\u002Fsliding-puzzle\u002F](examples\u002Fsliding-puzzle\u002F) | Games: swipe to slide (the 15-puzzle), rules in `rules\u002F`, `intentToMove` in the surface folder | Step 3, for swipe surfaces |\n| [examples\u002Farena-aim\u002F](examples\u002Farena-aim\u002F) | Games: pull back and release, aim quantised to integers, with a property test | Step 3, for aim surfaces |\n| `scripts\u002Fcheck-canvas-input.mjs` | Checks the kit, its worklets, the one gesture module, test ids, single intents, hover on change, pan finalize, slop, physical coordinates, detector children, React Native touch on a canvas (`canvas-rn-touch`), the root view, the intent function (present, tested, pure, exhaustive), touch-target tests and gate, the API version and the Worklets API | Steps 2 and 8, and at the end |\n| `scripts\u002Flib\u002Finput-scope.mjs` | Where the checker looks: layout, config keys, the contract, surfaces and which take touch | When changing the checker |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Synced source helpers (masking, JSX tags, imports, worklet directive) | When changing the checker |\n| `scripts\u002Fcheck-lib.mjs` | The shared script library (synced; never edit here) | Never by hand |\n| `scripts\u002Fselftest.mjs` | Proves the checker passes the templates and examples and catches each planted bug | After changing the checker, a template or an example |\n| `tests\u002Fbases\u002Fapp\u002F` | Fixture base: stand-ins for files other skills own (the root layout, `SurfaceCanvas`, the progress-grid model, view, layout and surface, the screen and model hook), `package.json`, `quality-gates.json` | When changing a fixture |\n| `tests\u002Ffixtures\u002F` | One overlay suite: `good\u002F` plus one planted bug per case (`mutation.json` or `DELETE.txt`, `EXPECT.txt`) | When adding a rule to the checker |\n| `assets\u002Fshared.json` | The shared files this skill copies in | When adding a shared file |\n| `assets\u002Ftemplate-placeholders.json` | The placeholder values the template checks fill in (`tasks`, `progress-grid`) | When renaming the template surface |\n\n## Related skills\n\n- `skia-canvas-rendering` - the picture, `CanvasLayout`, `PointerSample`, `SurfaceCanvas` and the drag preview this skill feeds (load both for an interactive canvas).\n- `accessibility-as-code` - the touch-target minimum, hold alternatives and the canvas's spoken summary.\n- `unit-and-component-tests` - the Jest projects, `jest.setup.ts` and test forms the gesture tests follow.\n- `naming-conventions` - testID grammar and kebab-case kinds.\n- `state-management-zustand` - the store whose dispatch receives the actions.\n- `react-components-and-hooks` - model hooks and React Compiler rules for the wiring.\n- `app-startup-and-bootstrap` - the root layout that holds `GestureHandlerRootView`.\n- `navigation-and-routing` - stack screen options for back gestures.\n- `rtl-and-direction` - which surfaces mirror and how direction switches.\n- `e2e-maestro` - tapping canvas cells from the published layout on both platforms.\n- `realtime-game-loop` - the fixed-step loop that consumes stick commands.\n- `game-rules-engine` and `game-session-host` - `listMoves`, hints and the game screen.\n- `expo-sdk-upgrade` - the SDK move that brings Gesture Handler 3.\n",{"name":5,"description":7},"main","41a0e66d4d09de5b46e6537f59a97c7192473486","skills\u002Fcanvas-gestures-and-hit-testing",2,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills","https:\u002F\u002Fzakaria.dev\u002FReactNative-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fzakariaf","https:\u002F\u002Fzakaria.dev","Seniore Software Engineer","2026-10-22 07:05:00",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add zakariaf\u002FReactNative-Skills --skill canvas-gestures-and-hit-testing",{"tool":40,"command":41},"bunx","bunx skills add zakariaf\u002FReactNative-Skills --skill canvas-gestures-and-hit-testing",{"tool":43,"command":44},"pnpm","pnpm dlx skills add zakariaf\u002FReactNative-Skills --skill canvas-gestures-and-hit-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002FSKILL.md",true,[48,54,58,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,188,192,196,200,204,208,212,216,220,224,227,231,235,239,243,247,251,255,259,263,267,271,275,279,283,287,291,295,298],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fshared.json","ASSET","资产文件",825,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fassets\u002Fshared.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Ftemplate-placeholders.json",279,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fassets\u002Ftemplate-placeholders.json",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"examples\u002Farena-aim\u002Fintent-to-move.test.ts","SCRIPT","脚本",1271,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Farena-aim\u002Fintent-to-move.test.ts",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"examples\u002Farena-aim\u002Fintent-to-move.ts",1471,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Farena-aim\u002Fintent-to-move.ts",{"path":69,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":70,"sourceHtmlUrl":71},"examples\u002Finbox-planner\u002Fhit-targets.test.ts",1744,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Finbox-planner\u002Fhit-targets.test.ts",{"path":73,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":74,"sourceHtmlUrl":75},"examples\u002Finbox-planner\u002Fintent-to-action.test.ts",4152,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Finbox-planner\u002Fintent-to-action.test.ts",{"path":77,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":78,"sourceHtmlUrl":79},"examples\u002Finbox-planner\u002Fintent-to-action.ts",2572,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Finbox-planner\u002Fintent-to-action.ts",{"path":81,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":82,"sourceHtmlUrl":83},"examples\u002Finbox-planner\u002Flayout-planner.ts",2064,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Finbox-planner\u002Flayout-planner.ts",{"path":85,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":86,"sourceHtmlUrl":87},"examples\u002Finbox-planner\u002Fplanner-rules.ts",1262,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Finbox-planner\u002Fplanner-rules.ts",{"path":89,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":90,"sourceHtmlUrl":91},"examples\u002Fprogress-grid\u002Fhit-targets.test.ts",1189,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Fprogress-grid\u002Fhit-targets.test.ts",{"path":93,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":94,"sourceHtmlUrl":95},"examples\u002Fprogress-grid\u002Fintent-to-action.test.ts",2471,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Fprogress-grid\u002Fintent-to-action.test.ts",{"path":97,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":98,"sourceHtmlUrl":99},"examples\u002Fprogress-grid\u002Fintent-to-action.ts",1879,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Fprogress-grid\u002Fintent-to-action.ts",{"path":101,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":102,"sourceHtmlUrl":103},"examples\u002Fprogress-grid\u002Fprogress-grid-rules.ts",654,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Fprogress-grid\u002Fprogress-grid-rules.ts",{"path":105,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":106,"sourceHtmlUrl":107},"examples\u002Fprogress-grid\u002Fuse-progress-grid-input.ts",2472,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Fprogress-grid\u002Fuse-progress-grid-input.ts",{"path":109,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":110,"sourceHtmlUrl":111},"examples\u002Fsliding-puzzle\u002Fintent-to-move.test.ts",2037,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Fsliding-puzzle\u002Fintent-to-move.test.ts",{"path":113,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":114,"sourceHtmlUrl":115},"examples\u002Fsliding-puzzle\u002Fintent-to-move.ts",2506,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Fsliding-puzzle\u002Fintent-to-move.ts",{"path":117,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":118,"sourceHtmlUrl":119},"examples\u002Fsliding-puzzle\u002Fsliding-puzzle-rules.ts",1319,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fexamples\u002Fsliding-puzzle\u002Fsliding-puzzle-rules.ts",{"path":121,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fgesture-handler-versions.md","REFERENCE","参考文档",3204,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Freferences\u002Fgesture-handler-versions.md",{"path":127,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Finput-pipeline.md",23716,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Freferences\u002Finput-pipeline.md",{"path":131,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fintent-to-action.md",10515,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Freferences\u002Fintent-to-action.md",{"path":135,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fstick-input.md",3219,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Freferences\u002Fstick-input.md",{"path":139,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Ftesting-gestures.md",7584,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Freferences\u002Ftesting-gestures.md",{"path":143,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":144,"sourceHtmlUrl":145},"scripts\u002Fcheck-canvas-input.mjs",47995,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fscripts\u002Fcheck-canvas-input.mjs",{"path":147,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":148,"sourceHtmlUrl":149},"scripts\u002Fcheck-lib.mjs",119923,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fscripts\u002Fcheck-lib.mjs",{"path":151,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":152,"sourceHtmlUrl":153},"scripts\u002Flib\u002Finput-scope.mjs",16484,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fscripts\u002Flib\u002Finput-scope.mjs",{"path":155,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":156,"sourceHtmlUrl":157},"scripts\u002Flib\u002Fsource-scan.mjs",35908,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fscripts\u002Flib\u002Fsource-scan.mjs",{"path":159,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":160,"sourceHtmlUrl":161},"scripts\u002Fselftest.mjs",660,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Fscripts\u002Fselftest.mjs",{"path":163,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":164,"sourceHtmlUrl":165},"templates\u002Fcontracts\u002Fcanvas-input.json",224,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fcontracts\u002Fcanvas-input.json",{"path":167,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":168,"sourceHtmlUrl":169},"templates\u002Fcontracts\u002Fcanvas-input.schema.json",3272,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fcontracts\u002Fcanvas-input.schema.json",{"path":171,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":172,"sourceHtmlUrl":173},"templates\u002Fsrc\u002Fcanvas\u002Fcanvas-layout.test.ts",4230,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fcanvas-layout.test.ts",{"path":175,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":176,"sourceHtmlUrl":177},"templates\u002Fsrc\u002Fcanvas\u002Fcanvas-layout.ts",6201,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fcanvas-layout.ts",{"path":179,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":180,"sourceHtmlUrl":181},"templates\u002Fsrc\u002Fcanvas\u002Fcanvas-types.ts",5482,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fcanvas-types.ts",{"path":183,"resourceType":184,"resourceTypeDesc":185,"sizeBytes":186,"sourceHtmlUrl":187},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fcanvas-gesture-probe.tsx","OTHER","其他",1472,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fcanvas-gesture-probe.tsx",{"path":189,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":190,"sourceHtmlUrl":191},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fcanvas-intent.ts",1344,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fcanvas-intent.ts",{"path":193,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":194,"sourceHtmlUrl":195},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fclassify-swipe.test.ts",992,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fclassify-swipe.test.ts",{"path":197,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":198,"sourceHtmlUrl":199},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fclassify-swipe.ts",1832,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fclassify-swipe.ts",{"path":201,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":202,"sourceHtmlUrl":203},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fpan-intent.test.ts",3013,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fpan-intent.test.ts",{"path":205,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":206,"sourceHtmlUrl":207},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fpan-intent.ts",2571,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fpan-intent.ts",{"path":209,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":210,"sourceHtmlUrl":211},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fstick-command.test.ts",1304,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fstick-command.test.ts",{"path":213,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":214,"sourceHtmlUrl":215},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fstick-command.ts",1864,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fstick-command.ts",{"path":217,"resourceType":184,"resourceTypeDesc":185,"sizeBytes":218,"sourceHtmlUrl":219},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fstick-gesture-probe.tsx",684,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fstick-gesture-probe.tsx",{"path":221,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":222,"sourceHtmlUrl":223},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Ftouch-targets.test.ts",1754,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Ftouch-targets.test.ts",{"path":225,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":114,"sourceHtmlUrl":226},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Ftouch-targets.ts","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Ftouch-targets.ts",{"path":228,"resourceType":184,"resourceTypeDesc":185,"sizeBytes":229,"sourceHtmlUrl":230},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fuse-canvas-gestures.test.tsx",6829,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fuse-canvas-gestures.test.tsx",{"path":232,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":233,"sourceHtmlUrl":234},"templates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fuse-canvas-gestures.ts",6072,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fgestures\u002Fuse-canvas-gestures.ts",{"path":236,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":237,"sourceHtmlUrl":238},"templates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Fsample.test.ts",1691,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Fsample.test.ts",{"path":240,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":241,"sourceHtmlUrl":242},"templates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Fsample.ts",3368,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Fsample.ts",{"path":244,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":245,"sourceHtmlUrl":246},"templates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Ftrack.ts",1997,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Ftrack.ts",{"path":248,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":249,"sourceHtmlUrl":250},"tests\u002Fbases\u002Fapp\u002Fpackage.json",390,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Fpackage.json",{"path":252,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":253,"sourceHtmlUrl":254},"tests\u002Fbases\u002Fapp\u002Fquality-gates.json",137,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Fquality-gates.json",{"path":256,"resourceType":184,"resourceTypeDesc":185,"sizeBytes":257,"sourceHtmlUrl":258},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F_layout.tsx",600,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fapp\u002F_layout.tsx",{"path":260,"resourceType":184,"resourceTypeDesc":185,"sizeBytes":261,"sourceHtmlUrl":262},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fcanvas\u002Fsurface-canvas.tsx",989,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fcanvas\u002Fsurface-canvas.tsx",{"path":264,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":265,"sourceHtmlUrl":266},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcanvas\u002Fcanvas-model.ts",411,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcanvas\u002Fcanvas-model.ts",{"path":268,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":269,"sourceHtmlUrl":270},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcanvas\u002Flayout-progress-grid.ts",687,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcanvas\u002Flayout-progress-grid.ts",{"path":272,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":273,"sourceHtmlUrl":274},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcanvas\u002Fprogress-grid-surface.ts",367,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcanvas\u002Fprogress-grid-surface.ts",{"path":276,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":277,"sourceHtmlUrl":278},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcanvas\u002Fto-view.ts",486,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fcanvas\u002Fto-view.ts",{"path":280,"resourceType":184,"resourceTypeDesc":185,"sizeBytes":281,"sourceHtmlUrl":282},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-screen.tsx",601,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Ftasks-screen.tsx",{"path":284,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":285,"sourceHtmlUrl":286},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fuse-tasks-model.ts",634,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Ffeatures\u002Ftasks\u002Fuse-tasks-model.ts",{"path":288,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":289,"sourceHtmlUrl":290},"tests\u002Fbases\u002Fapp\u002Ftsconfig.json",176,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Fbases\u002Fapp\u002Ftsconfig.json",{"path":292,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":293,"sourceHtmlUrl":294},"tests\u002Ffixtures\u002Fcheck-canvas-input\u002FCASES.json",47426,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Ffixtures\u002Fcheck-canvas-input\u002FCASES.json",{"path":296,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":14,"sourceHtmlUrl":297},"tests\u002Ffixtures\u002Fcheck-canvas-input\u002Fgood\u002FEXPECT.txt","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Ffixtures\u002Fcheck-canvas-input\u002Fgood\u002FEXPECT.txt",{"path":299,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":300,"sourceHtmlUrl":301},"tests\u002Ffixtures\u002Fcheck-canvas-input\u002FSUITE.json",219,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanvas-gestures-and-hit-testing\u002Ftests\u002Ffixtures\u002Fcheck-canvas-input\u002FSUITE.json",[303,310,316,323,330,337],{"skillNo":304,"name":305,"nameZh":6,"description":306,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":307,"categories":308,"keywords":309,"publishedAt":19},"01M7F2S4KZG97D21GEJ2GKKYK1","demo","Planted skill folder (never scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":311,"name":305,"nameZh":6,"description":312,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":313,"categories":314,"keywords":315,"publishedAt":19},"01M7F2S1F4ATZ49909EDKWA9E6","Planted installed skill (its files must never be scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002F.agents\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":317,"name":318,"nameZh":6,"description":319,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":320,"categories":321,"keywords":322,"publishedAt":19},"01M7F2RXGPZJ5Q1FV2HQ1PJ6AX","web-support","Ships the web build of an Expo app: platform files, APIs missing in react-native-web, expo-sqlite headers. Use when adding web, a .web.tsx file or expo export --platform web. Not for responsive layout (adaptive-layout).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002FSKILL.md",[],[],{"skillNo":324,"name":325,"nameZh":6,"description":326,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":327,"categories":328,"keywords":329,"publishedAt":19},"01M7F2RQ43JFA4QFWQEHBET08G","value-objects-money-and-units","Stores money as ISO 4217 minor units, quantities in canonical units, instants as epoch ms. Use when adding a price, currency, tax, split, unit or timestamp, or a total is a cent off. Not for calendar days (dates-streaks-and-statistics).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalue-objects-money-and-units\u002FSKILL.md",[],[],{"skillNo":331,"name":332,"nameZh":6,"description":333,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":334,"categories":335,"keywords":336,"publishedAt":19},"01M7F2RHR7H8VVZDP16FJNJV11","unit-and-component-tests","Sets up Jest, checks unit, component and route tests (RNTL 14, renderWithProviders, SDK mocks, fakes, fast-check, Stryker). Use when writing a test or mock, or Jest fails or flakes. Not for goldens (golden-and-snapshot-tests).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002FSKILL.md",[],[],{"skillNo":338,"name":339,"nameZh":6,"description":340,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":341,"categories":342,"keywords":343,"publishedAt":19},"01M7F2RAEDWQ6H4514HFRWJAE6","ui-states-and-feedback","Builds loading, empty, failed and offline states, delayed skeletons, toasts, banners, confirms, Undo. Use when a screen loads data, shows a spinner, toast, retry or delete prompt. Not for failure values (error-handling-typed-results).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-states-and-feedback\u002FSKILL.md",[],[]]