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

feat: add support for New Architecture #672

Merged
merged 8 commits into from
Nov 14, 2024

Conversation

WoLewicki
Copy link
Contributor

PR adding New Architecture support to 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 [email protected]


How did you test this change?

Enable new architecture in example app and see that everything works correctly.

android/src/main/java/com/rncamerakit/RNCameraKitModule.kt Outdated Show resolved Hide resolved
android/src/main/java/com/rncamerakit/events/ErrorEvent.kt Outdated Show resolved Hide resolved
android/src/main/java/com/rncamerakit/events/ZoomEvent.kt Outdated Show resolved Hide resolved
src/Camera.android.tsx Outdated Show resolved Hide resolved
src/Camera.ios.tsx Outdated Show resolved Hide resolved
@BogdanRad
Copy link

Hello, we need this update. Can you merge if is ok? please

Copy link
Collaborator

@scarlac scarlac left a comment

Choose a reason for hiding this comment

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

@WoLewicki Thank you so much for this work!
I will merge the PR, as I was able to verify that it doesn't break iOS by default.
However, when I enable the new arch (RCT_NEW_ARCH_ENABLED=1 bundle exec pod install) then it does not compile for me. Some kind of missing spec header file.
I will happily review a follow-up PR if I cannot find the time to resolve this myself.
I think it's also prudent to upgrade the example project to the latest react native version, so we are getting the best codegen available.

@scarlac scarlac merged commit 490a810 into teslamotors:master Nov 14, 2024
1 of 4 checks passed
@WoLewicki
Copy link
Contributor Author

I'll take a look at it when I have some free time, thanks!

@WoLewicki
Copy link
Contributor Author

WoLewicki commented Nov 29, 2024

@scarlac here is a PR bumping the example app to 0.76. I'll begin testing the new arch there now 🚀

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