Skip to content

Commit f0c62da

Browse files
rubennortemeta-codesync[bot]
authored andcommitted
Remove reference to type that will not be generated (facebook#56482)
Summary: Pull Request resolved: facebook#56482 Changelog: [internal] `ReactNativeType` is the type of the legacy renderer, which is being removed. This removes the references to it so the removal can land without Flow errors. Reviewed By: zeyap Differential Revision: D101352959 fbshipit-source-id: 3425260a1604eb83998b32dd8c25d399eb6c6ee1
1 parent 77d3df8 commit f0c62da

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/react-native/Libraries/ReactNative/RendererImplementation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const getMethod: (<MethodName extends keyof ReactFabricType>(
5151
return function (arg1, arg2, arg3, arg4, arg5, arg6) {
5252
if (cachedImpl == null) {
5353
// $FlowExpectedError[prop-missing]
54+
// $FlowExpectedError[invalid-computed-prop]
5455
cachedImpl = getRenderer()[methodName];
5556
}
5657

packages/react-native/Libraries/Renderer/shims/ReactNative.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@
77
* @noformat
88
* @nolint
99
* @flow
10-
* @generated SignedSource<<7a063365bcf9d96b1cd8714d309e5b92>>
10+
* @generated SignedSource<<5908e4e900f26a939c59a16d2c252af3>>
1111
*
1212
* This file is no longer sync'd from the facebook/react repository.
1313
* The version compatibility check is removed. Use at your own risk.
1414
*/
1515
'use strict';
1616

17-
import type {ReactNativeType} from './ReactNativeTypes';
18-
19-
let ReactNative: ReactNativeType;
17+
// The underlying type no longer exists
18+
let ReactNative: $FlowFixMe;
2019

2120
if (__DEV__) {
2221
ReactNative = require('../implementations/ReactNativeRenderer-dev');

0 commit comments

Comments
 (0)