Add iframe/webview bridge package and runnable Expo demo#1
Open
sirpy wants to merge 2 commits into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@goodwidget/bridgepackage with a unified iframe/webview EIP-1193 transport, provider injection (window.ethereum+window.goodWidget.provider), EIP-6963 announce/discovery, host router helpers, and anEmbeddedWidgetReact wrapper@goodwidget/corehost/provider resolution to auto-attempt embedded bridge handshake, detect bridge providers first, and prefer bridge over explicit provider when both are presentwebview-bridgescreen driven by a new single helpercreateWebViewBridgeConfig({ provider, sendToWebView })Test plan
pnpm install --no-frozen-lockfilepnpm -w run buildreact-native-webview,@goodwidget/bridge) and route wired (/webview-bridge)pnpm run androidinexamples/expoand validate live WebView bridge interactions on device/emulatorMade with Cursor