Skip to content

docs: add Expo Snack demo embed#19

Merged
saseungmin merged 6 commits into
mainfrom
docs/expo-snack-demo
Jun 28, 2026
Merged

docs: add Expo Snack demo embed#19
saseungmin merged 6 commits into
mainfrom
docs/expo-snack-demo

Conversation

@saseungmin

Copy link
Copy Markdown
Member

Expose the public Snack alongside the example project in README and docs.

Add the same Rspress Snack embed pattern used by the reference docs.

Expose the public Snack alongside the example project in README and docs.

Add the same Rspress Snack embed pattern used by the reference docs.

Constraint: Do not change GitHub Actions setup in this follow-up

Confidence: high

Scope-risk: narrow

Tested: CI=true pnpm docs:typecheck

Tested: CI=true pnpm docs:build

Tested: CI=true pnpm format:check targeted docs files

Tested: git diff --check
Rspress dev should resolve React Refresh from pnpm's isolated graph.
The hoisted linker made the refresh runtime get transformed by itself.

The embedded Snack preview now opens on iOS for the docs demo.

Constraint: pnpm hoisting changed the Rspress dev bundle runtime path
Rejected: Disable HMR | masks the React Refresh resolution issue
Confidence: high
Scope-risk: moderate
Tested: CI=true pnpm install --frozen-lockfile
Tested: CI=true pnpm docs:typecheck
Tested: CI=true pnpm docs:build
Tested: git diff --check --cached
Not-tested: Manual browser interaction with the embedded Snack
Record the README and docs quick start updates as a patch changeset.
This keeps the package release notes aligned with the published docs and Snack demo.

Constraint: README changes affect npm-facing package documentation
Confidence: high
Scope-risk: narrow
Tested: git diff --check
Not-tested: changeset version generation
@changeset-bot

changeset-bot Bot commented Jun 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d848eb3

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 Patch

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

cloudflare-workers-and-pages Bot commented Jun 27, 2026

Copy link
Copy Markdown

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

Latest commit: d848eb3
Status: ✅  Deploy successful!
Preview URL: https://49142e08.react-native-swipe-deck.pages.dev
Branch Preview URL: https://docs-expo-snack-demo.react-native-swipe-deck.pages.dev

View logs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2a27b664fa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/components/ExpoSnackEmbed.tsx Outdated
Move Jest configuration out of package.json so the pnpm-specific transform
allowlist is readable and keeps React Native test dependencies compiled.

Constraint: pnpm stores dependencies under node_modules/.pnpm paths
Rejected: Keep a long inline package.json regex | harder to review and maintain
Confidence: high
Scope-risk: narrow
Tested: CI=true pnpm test
Tested: CI=true pnpm format:check package.json jest.config.js
Tested: CI=true pnpm typecheck
Tested: CI=true pnpm build
Tested: CI=true pnpm docs:build
Tested: git diff --check
Rspress client navigation can remount the MDX page after Snack already loaded.

The embed script scans only at load time, so each mount now recreates the current iframe.

Constraint: Expo Snack embed script initializes by scanning DOM at load time

Rejected: Re-run document-wide initialize | broader than needed and timing-sensitive

Confidence: high

Scope-risk: narrow

Tested: CI=true pnpm docs:typecheck

Tested: CI=true pnpm format:check targeted Snack files

Tested: git diff --check targeted Snack files

Tested: CI=true pnpm docs:build
@saseungmin saseungmin merged commit 16b7636 into main Jun 28, 2026
4 checks passed
@saseungmin saseungmin deleted the docs/expo-snack-demo branch June 28, 2026 05:13
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