Skip to content

feat: support interactive card content#21

Merged
saseungmin merged 1 commit into
mainfrom
feat/card-interactive
Jul 7, 2026
Merged

feat: support interactive card content#21
saseungmin merged 1 commit into
mainfrom
feat/card-interactive

Conversation

@saseungmin

Copy link
Copy Markdown
Member

Summary

  • add SwipeDeck.Card interactive API for active-card touchable children
  • keep default/background cards non-interactive and protect pointerEvents precedence
  • document the API in docs and add a minor changeset

Tests

  • pnpm typecheck --pretty false
  • pnpm lint
  • pnpm format:check
  • pnpm jest --runInBand --watchman=false
  • pnpm build
  • pnpm docs:typecheck
  • pnpm docs:build
  • git diff --check

Allow SwipeDeck.Card to opt the active card into touchable children.

Background cards stay non-interactive so the deck keeps swipe ownership.

The internal pointer policy remains after consumer styles for safety.

Constraint: Preserve existing swipe and animation semantics

Rejected: Expose raw cardPointerEvents | leaks RN pointer policy

Confidence: high

Scope-risk: narrow

Directive: Keep nested gesture coordination as a separate API

Tested: pnpm typecheck --pretty false; pnpm lint; pnpm format:check

Tested: pnpm jest --runInBand --watchman=false; pnpm build

Tested: pnpm docs:typecheck; pnpm docs:build; git diff --check

Not-tested: Manual iOS/Android ad CTA press on physical devices
@changeset-bot

changeset-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: faffdc5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@react-native-motion-kit/swipe-deck Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying react-native-swipe-deck with  Cloudflare Pages  Cloudflare Pages

Latest commit: faffdc5
Status: ✅  Deploy successful!
Preview URL: https://e2a009ea.react-native-swipe-deck.pages.dev
Branch Preview URL: https://feat-card-interactive.react-native-swipe-deck.pages.dev

View logs

@saseungmin saseungmin merged commit e95ea8a into main Jul 7, 2026
4 checks passed
@saseungmin saseungmin deleted the feat/card-interactive branch July 7, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant