Skip to content

Add iframe/webview bridge package and runnable Expo demo#1

Open
sirpy wants to merge 2 commits into
mainfrom
feat/bridge-webview-iframe
Open

Add iframe/webview bridge package and runnable Expo demo#1
sirpy wants to merge 2 commits into
mainfrom
feat/bridge-webview-iframe

Conversation

@sirpy
Copy link
Copy Markdown
Contributor

@sirpy sirpy commented Mar 25, 2026

Summary

  • add a new @goodwidget/bridge package with a unified iframe/webview EIP-1193 transport, provider injection (window.ethereum + window.goodWidget.provider), EIP-6963 announce/discovery, host router helpers, and an EmbeddedWidget React wrapper
  • update @goodwidget/core host/provider resolution to auto-attempt embedded bridge handshake, detect bridge providers first, and prefer bridge over explicit provider when both are present
  • upgrade examples/docs with runnable integration patterns: new React-web iframe tab, HTML iframe instructions, and a live Expo webview-bridge screen driven by a new single helper createWebViewBridgeConfig({ provider, sendToWebView })

Test plan

  • pnpm install --no-frozen-lockfile
  • pnpm -w run build
  • Expo demo dependencies installed (react-native-webview, @goodwidget/bridge) and route wired (/webview-bridge)
  • Run pnpm run android in examples/expo and validate live WebView bridge interactions on device/emulator

Made with Cursor

sirpy added 2 commits March 25, 2026 20:36
Introduce a unified @goodwidget/bridge package with iframe/webview transport, EIP-6963-compatible injection, and host helpers, then wire core provider detection to prefer bridge providers for embedded apps. Upgrade examples and docs to include runnable iframe/webview integration patterns and a live Expo WebView bridge screen.
Include the outstanding README formatting tweaks, detect.ts formatting changes, and Expo local settings update so the branch matches the current working tree.
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