mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Remove reference to type that will not be generated (#56482)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
1 parent
77d3df8cab
commit
f0c62dabe9
2 files changed
+4
-4
No files matched your search
@@ -51,6 +51,7 @@ const getMethod: (<MethodName extends keyof ReactFabricType>(
|
||||
return function (arg1, arg2, arg3, arg4, arg5, arg6) {
|
||||
if (cachedImpl == null) {
|
||||
// $FlowExpectedError[prop-missing]
|
||||
// $FlowExpectedError[invalid-computed-prop]
|
||||
cachedImpl = getRenderer()[methodName];
|
||||
}
|
||||
|
||||
|
||||
@@ -7,16 +7,15 @@
|
||||
* @noformat
|
||||
* @nolint
|
||||
* @flow
|
||||
* @generated SignedSource<<7a063365bcf9d96b1cd8714d309e5b92>>
|
||||
* @generated SignedSource<<5908e4e900f26a939c59a16d2c252af3>>
|
||||
*
|
||||
* This file is no longer sync'd from the facebook/react repository.
|
||||
* The version compatibility check is removed. Use at your own risk.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
import type {ReactNativeType} from './ReactNativeTypes';
|
||||
|
||||
let ReactNative: ReactNativeType;
|
||||
// The underlying type no longer exists
|
||||
let ReactNative: $FlowFixMe;
|
||||
|
||||
if (__DEV__) {
|
||||
ReactNative = require('../implementations/ReactNativeRenderer-dev');
|
||||
|
||||
Reference in new issue
Block a user