[Ignore] Deeplink to Settings View working #20543
Closed
+18
−1
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.
My first thought was to just ask AI how to do it before having to dive into such a large codebase, but I decided to do it the manual way because a lot of devs may not have access to powerful AI. At multiple points I asked myself if there were any examples somewhere in the code base. A Readme file or comments in the files may be helpful.
Leads me to “parse” and then “parseDeepLink”
handleMetaMaskDeeplink
file?SDKConnect.getInstance().state.navigation
really what we want to be using? Take a look at the “Routes” file and see one for settings. But what are the two parameters that “navigate” needs to take? They look similar in that example… both routes? Looks like first param is the route but why does the second variable have a “screen” field? I think that must be a misnomer for a stage of a modal process. I will remove the second parameter and use the Routes. I search in app forRoutes.SETTINGS_VIEW
to see if I need to pass a second param. Looks like this call should hopefully do the trick:Find deeplinks.ts file for the actual string route paths
Does React Native have link components? Documentation says no but we can create a button and use Linking.openURL(theUrl)
Button link works!