Commit 184a83d
Convert RCTTiming to TurboModule (#57037)
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: D1072019061 parent 1a4a139 commit 184a83d
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
427 | 430 | | |
428 | 431 | | |
429 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
430 | 439 | | |
431 | 440 | | |
432 | 441 | | |
| |||
0 commit comments