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

New module wrapper #2379

Merged
merged 6 commits into from
Apr 18, 2024
Merged

New module wrapper #2379

merged 6 commits into from
Apr 18, 2024

Conversation

wcandillon
Copy link
Contributor

This code was taken from vision-camera to keep Reanimated as an optional dependency.
This is more elegant than what we had built there.

@wcandillon wcandillon merged commit aeb5a85 into main Apr 18, 2024
13 checks passed
@mrousavy
Copy link
Contributor

Yo - nice to see this becoming adopted, but just a quick note that there is a bug in Metro or Hermes or something and we need to put the try/catch actually in the same function as the require(..) statement. See my PR to fix this: mrousavy/react-native-vision-camera#2750

@mrousavy
Copy link
Contributor

Crated a metro bug report: facebook/metro#1256

We'll see if this is actually intended or a bug

@wcandillon
Copy link
Contributor Author

that's a very nice catch, the way I tested it for optional was outside metro.

Copy link
Contributor

🎉 This PR is included in version 1.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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