Skip to content

Conversation

@ceyhun
Copy link
Contributor

@ceyhun ceyhun commented May 4, 2020

Fixes potential crash after uuid package upgrade in Gutenberg:
WordPress/gutenberg#21258

The new uuid version uses crypto.getRandomValues which is not supported in React Native:
https://github.com/uuidjs/uuid/tree/f6ce4bffc2b10d92f3164e76e877e5cdb7942474#getrandomvalues-not-supported

To test:

  • Start Android and iOS apps
  • Apps should not crash on startup
  • Select "Debug" from in-app menu
  • Apps should not crash

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@ceyhun ceyhun marked this pull request as draft May 4, 2020 13:47
@SergioEstevao
Copy link
Contributor

@marecar3 is this the same solution you did in the RN 0.62 branch?

@marecar3
Copy link
Contributor

@marecar3 is this the same solution you did in the RN 0.62 branch?

Yes, that's correct @SergioEstevao.

@ceyhun
Copy link
Contributor Author

ceyhun commented Jun 29, 2020

Should be resolved via #2172

@ceyhun ceyhun closed this Jun 29, 2020
@ceyhun ceyhun deleted the fix/potential-uuid-crash branch June 29, 2020 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants