Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update react-native-webview [LIVE-12644] #7135

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

Justkant
Copy link
Contributor

@Justkant Justkant commented Jun 18, 2024

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests. but not entirely so I tested every use cases on ios and android
  • Impact of the changes:
    • discover
    • buy/sell
    • card
    • recover
    • other webviews usage not related to platform or wallet-api

📝 Description

Updates the react-native-webview dependency to the latest version
Keeps all previously patched behaviours:

  • Opening target="_blank" links on iOS in the default browser
  • Support allowInsecureHttps for recover
  • Enable debugging for iOS and Android in dev mode
  • history.pushState on android (fixed in new versions)

Known bug:

Android iOS
Screen.Recording.2024-06-18.at.17.33.51.mov
Screen.Recording.2024-06-18.at.17.34.56.mov

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@Justkant Justkant self-assigned this Jun 18, 2024
@Justkant Justkant requested review from a team as code owners June 18, 2024 16:15
Copy link

vercel bot commented Jun 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Jun 19, 2024 8:46am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Jun 19, 2024 8:46am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jun 19, 2024 8:46am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jun 19, 2024 8:46am
web-tools ⬜️ Ignored (Inspect) Visit Preview Jun 19, 2024 8:46am

@live-github-bot live-github-bot bot added the mobile Has changes in LLM label Jun 18, 2024
Copy link

socket-security bot commented Jun 18, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/react-native-webview@13.10.3 None 0 0 B

🚮 Removed packages: npm/react-native-webview@11.26.1

View full report↗︎

Copy link
Contributor

@RamyEB RamyEB left a comment

Choose a reason for hiding this comment

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

Might be good to improve the error message, otherwise LGTM

if (supported) {
Linking.openURL(targetUrl);
} else {
console.error(`Don't know how to open URI: ${targetUrl}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be a better error message ?

onOpenWindow | URL_UNSUPPORTED : Unable to check if the URL can be opened.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

URL and URI is not the same thing, here we are talking about an URI

I can update this to something like URI not supported: ${targetUrl} because we are able to check if the URI can be opened but it's just not supported or able to be opened

Copy link
Contributor

@Wozacosta Wozacosta left a comment

Choose a reason for hiding this comment

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

👍

@Justkant Justkant merged commit 9c0753c into develop Jun 19, 2024
56 checks passed
@Justkant Justkant deleted the support/LIVE-12644 branch June 19, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants