-
Notifications
You must be signed in to change notification settings - Fork 116
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 arch migration #495
New arch migration #495
Conversation
🦋 Changeset detectedLatest commit: 985d6e5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Left few questions
packages/repack/android/src/main/java/com/callstack/repack/ChunkManagerModule.kt
Outdated
Show resolved
Hide resolved
packages/repack/android/src/main/java/com/callstack/repack/ChunkManagerPackage.kt
Show resolved
Hide resolved
packages/repack/android/src/main/java/com/callstack/repack/ChunkManagerPackage.kt
Outdated
Show resolved
Hide resolved
c8b0e46
to
985d6e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff, thanks @troZee 🎉
* TS spec + android old arch * android new arch * ios support * fix tests * change needsEagerInit to true * add early return * fix comment * chore: add changeset --------- Co-authored-by: Piotr Trocki <[email protected]> Co-authored-by: Jakub Romanczyk <[email protected]>
* TS spec + android old arch * android new arch * ios support * fix tests * change needsEagerInit to true * add early return * fix comment * chore: add changeset --------- Co-authored-by: Piotr Trocki <[email protected]> Co-authored-by: Jakub Romanczyk <[email protected]>
* TS spec + android old arch * android new arch * ios support * fix tests * change needsEagerInit to true * add early return * fix comment * chore: add changeset --------- Co-authored-by: Piotr Trocki <[email protected]> Co-authored-by: Jakub Romanczyk <[email protected]>
Summary
This PR aims to add a turbo module with backward compatibility. Re.Pack current implementation directly uses RN native modules, but with this change, there is a
SPEC
implementation that allows for more efficient communication between native and JavaScript. This change allows for both old and new architecture. All implementation follows the official react native bob builder template.Test plan
RN>=0.68.0
NOTE: TesterApp currently meets this requirement if you're using repack TesterApp.
For Android
You will only need to update your
android/gradle.properties
file as follows:newArchEnabled=true
and then
yarn TesterApp:start
For iOS
Run pod install with the flags:
RCT_NEW_ARCH_ENABLED=1 pod install
and then
yarn TesterApp:start