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

Introduce SampleLegacyModule example in RNTester #38008

Closed
wants to merge 1 commit into from

Conversation

RSNara
Copy link
Contributor

@RSNara RSNara commented Jun 21, 2023

Summary:
Introduce a legacy module (+ example) in RNTester.

In the future, SampleLegacyModule will be used to:

  • Showcase the TurboModule interop layer in RNTester, once Bridgeless mode is ready
  • E2E Test the TurboModule interop layer.

The TurboModule interop layer is just an extension to the TurboModule system that allows the system to create legacy modules. Unlike regular TurboModules, these legacy modules don't need codegen for JavaScript -> native method dispatch.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D46874160

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Jun 21, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46874160

@RSNara RSNara force-pushed the export-D46874160 branch from a8faede to 08f2967 Compare June 21, 2023 21:27
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46874160

@RSNara RSNara force-pushed the export-D46874160 branch from 08f2967 to b786f7b Compare June 21, 2023 21:50
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46874160

RSNara added a commit to RSNara/react-native that referenced this pull request Jun 21, 2023
Summary:
Pull Request resolved: facebook#38008

Introduce a legacy module (+ example) in RNTester.

In the future, SampleLegacyModule will be used to:
- Showcase the TurboModule interop layer in RNTester, once Bridgeless mode is ready
- E2E Test the TurboModule interop layer.

The TurboModule interop layer is just an extension to the TurboModule system that allows the system to create legacy modules. Unlike regular TurboModules, these legacy modules don't need codegen for JavaScript -> native method dispatch.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D46874160

fbshipit-source-id: 61c63c9fe485de721bc98ca02ed9c68ae09d1ebb
@RSNara RSNara force-pushed the export-D46874160 branch from b786f7b to 2b1191f Compare June 21, 2023 21:56
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46874160

@RSNara RSNara force-pushed the export-D46874160 branch from 2b1191f to 0ded320 Compare June 21, 2023 22:07
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46874160

@analysis-bot
Copy link

analysis-bot commented Jun 21, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,963,523 +5
android hermes armeabi-v7a 8,224,708 +2
android hermes x86 9,477,185 +2
android hermes x86_64 9,319,655 +3
android jsc arm64-v8a 9,524,458 +2
android jsc armeabi-v7a 8,662,982 +4
android jsc x86 9,609,006 +4
android jsc x86_64 9,855,576 +3

Base commit: 7920ae8
Branch: main

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46874160

RSNara added a commit to RSNara/react-native that referenced this pull request Jun 21, 2023
Summary:
Pull Request resolved: facebook#38008

Introduce a legacy module (+ example) in RNTester.

In the future, SampleLegacyModule will be used to:
- Showcase the TurboModule interop layer in RNTester, once Bridgeless mode is ready
- E2E Test the TurboModule interop layer.

The TurboModule interop layer is just an extension to the TurboModule system that allows the system to create legacy modules. Unlike regular TurboModules, these legacy modules don't need codegen for JavaScript -> native method dispatch.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D46874160

fbshipit-source-id: c303ec507ee2b86cb24813d14921bb10f69a4466
@RSNara RSNara force-pushed the export-D46874160 branch from 0ded320 to f6187b0 Compare June 21, 2023 23:03
Summary:
Pull Request resolved: facebook#38008

Introduce a legacy module (+ example) in RNTester.

In the future, SampleLegacyModule will be used to:
- Showcase the TurboModule interop layer in RNTester, once Bridgeless mode is ready
- E2E Test the TurboModule interop layer.

The TurboModule interop layer is just an extension to the TurboModule system that allows the system to create legacy modules. Unlike regular TurboModules, these legacy modules don't need codegen for JavaScript -> native method dispatch.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D46874160

fbshipit-source-id: 01158ecdd457326340424a9c8fed70646ad4eeb2
@RSNara RSNara force-pushed the export-D46874160 branch from f6187b0 to b438be6 Compare June 21, 2023 23:09
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D46874160

@github-actions
Copy link

This pull request was successfully merged by @RSNara in a1b64b7.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions bot added the Merged This PR has been merged. label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants