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(#38): make module TurboModule-compatible #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mateusz1913
Copy link

Closes #38

👋 This PR adds TurboModule support

List of changes:

  • create JS Codegen spec
  • use install_modules_dependencies util in podspec if possible, to install React deps
  • migrate Android module class to conform to codegenerated spec when new arch enabled
  • copy codegen-ed to oldarch Android source set to make module work when new arch disabled
  • migrate iOS module class to conform to codegenerated spec when new arch enabled

- create JS Codegen spec
- use install_modules_dependencies util in podspec if possible, to install React deps
- migrate Android module class to conform to codegenerated spec when new arch enabled
- copy codegen-ed to oldarch Android source set to make module work when new arch disabled
- migrate iOS module class to conform to codegenerated spec when new arch enabled
@mateusz1913
Copy link
Author

Hi @LinusU , let me know if there's anything I'd need to improve in this PR

@pinpong
Copy link

pinpong commented Dec 2, 2024

@LinusU lgtm

@pinpong
Copy link

pinpong commented Dec 5, 2024

@mateusz1913 is the android newarch folder missing?

@mateusz1913
Copy link
Author

@pinpong no, the codegen spec class is used by default and if old arch enabled, it uses the class from old arch folder

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.

Migrate to new architecture
3 participants