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

Fix QR code resolution #15

Merged
merged 5 commits into from
Jul 27, 2023
Merged

Fix QR code resolution #15

merged 5 commits into from
Jul 27, 2023

Conversation

balanza
Copy link
Contributor

@balanza balanza commented Jul 27, 2023

List of Changes

  • Define QRCodePayload type to map QR code content
  • Polyfill URL class
  • Add test scenario to example app

Motivation and Context

The main fix is to polyfill the URL class implementation using the react-native-url-polyfill package. This is needed because of a known, unsolved bug in React Native: facebook/react-native#24428.

The other change is an improvement on the mapping of QR content, which is now a structured object containing all the information parsed from the received url.

How Has This Been Tested?

Test scenario example app

Screenshots (if appropriate):

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@balanza balanza requested a review from a team as a code owner July 27, 2023 08:37
@balanza balanza enabled auto-merge July 27, 2023 08:42
Copy link
Contributor

@grausof grausof left a comment

Choose a reason for hiding this comment

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

LGTM

@balanza balanza added this pull request to the merge queue Jul 27, 2023
Merged via the queue into master with commit 13f94cc Jul 27, 2023
3 checks passed
@balanza balanza deleted the fix-qr-decode branch July 27, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants