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: events in bridgeless mode #3240

Merged

Conversation

WoLewicki
Copy link
Contributor

@WoLewicki WoLewicki commented Oct 11, 2024

PR concerning New Architecture support in the library 🎉

We at Software Mansion have been working on improving support for the new architecture for quite a while now. If you need help with anything related to New Architecture, like:

or you just want to ask any questions, hit us up on projects@swmansion.com


What

PR fixing events in bridgeless mode on Android, due to their stricter convention of naming there.

Changes

Tested on

Related issues

Copy link

vercel bot commented Oct 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 16, 2024 9:08am

hannojg

This comment was marked as outdated.

Copy link
Owner

@mrousavy mrousavy left a comment

Choose a reason for hiding this comment

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

Hey - thanks for this PR, really helpful stuff! 🙏
Just one question

Copy link
Collaborator

@hannojg hannojg left a comment

Choose a reason for hiding this comment

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

@WoLewicki Can we please rename these events to topCameraInitialized (so including Camera) etc?

@hannojg
Copy link
Collaborator

hannojg commented Oct 15, 2024

All good, already went ahead and updated the names. @mrousavy good for merge!

@WoLewicki
Copy link
Contributor Author

@hannojg are you sure it works? I remember having some problems with such renaming, I think it is due to JS callbacks not having camera in their name. Maybe wait with merging it and let me double-check ok?

@hannojg
Copy link
Collaborator

hannojg commented Oct 15, 2024

I tested it with the renaming and it was working in the example app, so should be good 😊 If you have the time feel free to double check ofc 🫶

@mrousavy
Copy link
Owner

I committed the changes to fix the wrong names - @hannojg if you already have the test setup running could you maybe test if everything still works? Especially onPreviewStarted and onPreviewStopped

@hannojg
Copy link
Collaborator

hannojg commented Oct 16, 2024

Sure, let me test, one second

@hannojg
Copy link
Collaborator

hannojg commented Oct 16, 2024

Screenshot 2024-10-16 at 11 16 05

yes, everything is still working on android!

@mrousavy
Copy link
Owner

Awesome - LGTM then - thanks @WoLewicki & @hannojg !!! ❤️

@mrousavy mrousavy merged commit e2d169a into mrousavy:main Oct 16, 2024
5 checks passed
@WoLewicki
Copy link
Contributor Author

Hey guys, did you test it in bridgeless mode? It's where the issue exists, as mentioned in the PR title. It's much stricter than bridge mode. cc @hannojg

@hannojg
Copy link
Collaborator

hannojg commented Oct 16, 2024

Will do those tests in a moment, yes! We'll handle everything in a separate PR for new arch 😊 !

@hannojg
Copy link
Collaborator

hannojg commented Oct 17, 2024

Screenshot 2024-10-17 at 16 14 50

Working fine in bridgeless mode!

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.

3 participants