mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
c0f3e64070
commit
d7d9e1c090
@@ -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
@@ -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;
|
||||
|
||||
|
||||
+3
-3
@@ -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 = {
|
||||
Reference in New Issue
Block a user