fix(web): do not throw error on module init
This PR uses face-detection module to showcase how we can handle Web by ignoring the module and throwing an error when trying to use hooks.
🦋 Changeset detected
Latest commit: d8fbb870746ca2b9da28bb0650613641d765922b
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @infinitered/react-native-mlkit-face-detection | Minor |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
I really like this approach -- going to work on implementing this for the rest of the modules today.
@cdanwards implemented this pattern in all packages in in #205, so I'm going to close this PR but with much appreciation for the contribution!
@all-contributors please add younes0 for ideas