Skip to content

Remove SampleLegacyModule from RNTester#55991

Open
christophpurrer wants to merge 1 commit intofacebook:mainfrom
christophpurrer:export-D95684553
Open

Remove SampleLegacyModule from RNTester#55991
christophpurrer wants to merge 1 commit intofacebook:mainfrom
christophpurrer:export-D95684553

Conversation

@christophpurrer
Copy link
Contributor

Summary:
The SampleLegacyModule was a sample module used to demonstrate the legacy (non-TurboModule) native module API. Since React Native has fully migrated to TurboModules, this legacy sample module is no longer needed.

This removes:

  • SampleLegacyModule.kt (Android platform implementation)
  • RCTSampleLegacyModule.h/mm (iOS platform implementation)
  • LegacyModuleExample.js and SampleLegacyModuleExample.js (JS example screens)
  • All references from RNTesterApplication.kt, CatalystApplication.java, and RNTester list files
  • E2E test for SampleLegacyModule

Changelog:

[General] [Removed] - Remove SampleLegacyModule from RNTester

Differential Revision: D95684553

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 7, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 7, 2026

@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95684553.

Summary:

The `SampleLegacyModule` was a sample module used to demonstrate the legacy (non-TurboModule) native module API. Since React Native has fully migrated to TurboModules, this legacy sample module is no longer needed.

This removes:
- `SampleLegacyModule.kt` (Android platform implementation)
- `RCTSampleLegacyModule.h/mm` (iOS platform implementation)
- `LegacyModuleExample.js` and `SampleLegacyModuleExample.js` (JS example screens)
- All references from `RNTesterApplication.kt`, `CatalystApplication.java`, and RNTester list files
- E2E test for SampleLegacyModule

## Changelog:

[General] [Removed] - Remove SampleLegacyModule from RNTester

Differential Revision: D95684553
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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants