Use codegen for Fantom native module (#48432)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/48432

Changelog: [internal]

This moves the native module definition for Fantom to the `react-native` package so we can migrate the module to use the codegen.

Also implements the migration.

Reviewed By: christophpurrer

Differential Revision: D67759729

fbshipit-source-id: d79d078908b05fc4b6f5f26f0144ab7e3485cb83
This commit is contained in:
Rubén Norte
2025-01-03 04:57:43 -08:00
committed by Facebook GitHub Bot
parent c0f3e64070
commit d7d9e1c090
3 changed files with 5 additions and 5 deletions
@@ -9,10 +9,10 @@
* @oncall react_native
*/
import NativeFantom from './specs/NativeFantom';
// $FlowExpectedError[untyped-import]
import micromatch from 'micromatch';
import * as React from 'react';
import NativeFantom from 'react-native/src/private/specs/modules/NativeFantom';
export type RenderOutputConfig = {
...FantomRenderedOutputConfig,
+1 -1
View File
@@ -15,8 +15,8 @@ import type {
import type {MixedElement} from 'react';
import getFantomRenderedOutput from './getFantomRenderedOutput';
import NativeFantom from './specs/NativeFantom';
import ReactFabric from 'react-native/Libraries/Renderer/shims/ReactFabric';
import NativeFantom from 'react-native/src/private/specs/modules/NativeFantom';
let globalSurfaceIdCounter = 1;
@@ -4,13 +4,13 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @flow strict
* @format
*/
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
import {TurboModuleRegistry} from 'react-native';
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
// match RenderFormatOptions.h
export type RenderFormatOptions = {