Skip to content

Remove legacy RCTTimingModule (#57037)#57037

Open
christophpurrer wants to merge 1 commit into
facebook:mainfrom
christophpurrer:export-D107201906
Open

Remove legacy RCTTimingModule (#57037)#57037
christophpurrer wants to merge 1 commit into
facebook:mainfrom
christophpurrer:export-D107201906

Conversation

@christophpurrer
Copy link
Copy Markdown
Contributor

@christophpurrer christophpurrer commented Jun 2, 2026

Summary:

Changelog:

[IOS][Fixed] Remove legacy RCTTimingModule

Differential Revision: D107201906

@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 Jun 2, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Jun 2, 2026

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

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot changed the title Convert RCTTiming to TurboModule Convert RCTTiming to TurboModule (#57037) Jun 2, 2026
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Jun 2, 2026
Summary:

Wires `RCTTiming` (iOS CoreModule for `setTimeout`/`setInterval`/idle callbacks) to the existing TurboModule spec at `packages/react-native/src/private/specs_DEPRECATED/modules/NativeTiming.js`. `RCTTiming` was the only remaining `legacy = True` entry in `React/CoreModules/BUCK`. The existing `RCT_EXPORT_METHOD` signatures already match the spec exactly, so this is a registration/wiring change only.

Changes:
- `RCTTiming.mm`: declare `<NativeTimingSpec>` conformance in a private interface and add `getTurboModule:` returning `NativeTimingSpecJSI`, mirroring the pattern used by `RCTAppState`.
- `React/CoreModules/BUCK`: drop `legacy = True` from the `Timing` entry of `react_module_plugin_providers`.

No public header changes — the bridgeless path (`ObjCTimerRegistry`) continues to instantiate `RCTTiming` via `initWithDelegate:` and the `RCTTimingDelegate` protocol. No CocoaPods / Swift Package changes are needed: `React-CoreModules.podspec` globs all `CoreModules/*.mm` and `FBReactNativeSpec` codegens `NativeTimingSpecJSI` from the existing JS spec.

## Changelog: 
[IOS][Fixed]Convert RCTTiming to TurboModule

Differential Revision: D107201906
@meta-codesync meta-codesync Bot changed the title Convert RCTTiming to TurboModule (#57037) Remove legacy RCTTimingModule (#57037) Jun 3, 2026
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Jun 3, 2026
Summary:

## Changelog: 
[IOS][Fixed] Remove legacy RCTTimingModule

Differential Revision: D107201906
@christophpurrer christophpurrer force-pushed the export-D107201906 branch 2 times, most recently from f849c2f to c625fe7 Compare June 3, 2026 17:18
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Jun 3, 2026
Summary:

## Changelog: 
[IOS][Fixed] Remove legacy RCTTimingModule

Differential Revision: D107201906
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Jun 3, 2026
Summary:

## Changelog: 
[IOS][Fixed] Remove legacy RCTTimingModule

Differential Revision: D107201906
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Jun 3, 2026
Summary:

## Changelog: 
[IOS][Fixed] Remove legacy RCTTimingModule

Differential Revision: D107201906
Summary:

## Changelog: 
[IOS][Fixed] Remove legacy RCTTimingModule

Differential Revision: D107201906
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Jun 3, 2026
Summary:

## Changelog: 
[IOS][Fixed] Remove legacy RCTTimingModule

Differential Revision: D107201906
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