From b779dd51e87b92e13001b5deac4887bb4984ecf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Sat, 21 Mar 2020 15:22:40 -0700 Subject: [PATCH] Stop syncing ReactTypes to RN (#18366) This is a really old one and all callers have since been codemodded away anyway because of problems. This file is not really as rigorously maintained as the official Flow types but has a few more specifics. However, the inconsistency causes problems when you try to pass files typed using the built-in Flow typing for React and mix it with these. We just happen to get away with it because we compile out the types. If we didn't we would hit those problems by even using these in our renderers. --- scripts/rollup/packaging.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/rollup/packaging.js b/scripts/rollup/packaging.js index c5ed04df5a..8c12560e63 100644 --- a/scripts/rollup/packaging.js +++ b/scripts/rollup/packaging.js @@ -87,11 +87,9 @@ async function copyWWWShims() { } async function copyRNShims() { - const reactTypesBuildTarget = 'build/react-native/shims/ReactTypes.js'; await Promise.all([ // React Native asyncCopyTo(`${__dirname}/shims/react-native`, 'build/react-native/shims'), - asyncCopyTo(require.resolve('shared/ReactTypes.js'), reactTypesBuildTarget), asyncCopyTo( require.resolve('react-native-renderer/src/ReactNativeTypes.js'), 'build/react-native/shims/ReactNativeTypes.js'