This repository was archived by the owner on Dec 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Headless SDK #18
Draft
musnit
wants to merge
15
commits into
WalletConnect:main
Choose a base branch
from
spinamp:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Headless SDK #18
Conversation
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
Collaborator
|
hey @musnit 👋 can you open an issue describing the modal problems? |
Expose connectToProvider function to client
Expose pairing uri to client
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.



We had a lot of issues integrating with the Modal - it freezes and causes issues and only seems to work properly on a few specific versions of React.
It would be great to fix that.
Meanwhile, we anyway wanted a Headless SDK so that we can use our own fully custom UI. This PR contains exactly that.
I've refactored and removed all the UI code from the SDK so that it exposes only headless hooks that apps can consume however they like.
This draft PR is just for reference - documentation and examples still would need to be fixed, but I would propose potentially releasing it as a separate library, and refactoring the main modal-react-native library to be a thin UI layer on top of this new headless library.
The implementation basically moves all state/logic into the main useWalletConnectModal hook, instead of in react components and then deletes all components, including the related modal, theming and routing logic systems. It exposes just the list of recommendedWallets with added deepLink and imageURL fields so that the image can be displayed and deepLink can be triggered however the consumer wants.
The intended way for this new library to be used is basically as follows:
A fuller example is here: https://github.com/musnit/broken_walletconnect