Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Why the process is async? #12

Closed
mgtitimoli opened this issue Aug 10, 2018 · 1 comment
Closed

Why the process is async? #12

mgtitimoli opened this issue Aug 10, 2018 · 1 comment

Comments

@mgtitimoli
Copy link

mgtitimoli commented Aug 10, 2018

Hey @Traviskn,

Before going further I want to thank you for having published this, thanks!

I was just wondering why the necessity of going async, can you give me an insight on the decisions around this?

Thanks again!

@Traviskn
Copy link
Owner

In react native, JS and native code communicate over an asynchronous bridge. This library's uuid generator being async is because of the architectural restrictions of react native itself, I'm not sure it is possible to synchronously call native code from JS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants