react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

PlatformTypes.js forked due to flow not recognizing PlatformTypes.windows.js

Open Yajur-Grover opened this issue 8 months ago • 2 comments

Problem Description

In this integration, we were getting a lot of errors where the flow check was not recognizing Windows specific types in PlatformTypes.windows.js, so created an override of PlatformTypes.js.

Link to the integration where the error originated

https://github.com/microsoft/react-native-windows/pull/14662

Link to commit

https://github.com/facebook/react-native/pull/49306

Forked files

PlatformTypes.js

Upstream PR

N/A

Build Configuration

None

Yajur-Grover avatar May 16 '25 21:05 Yajur-Grover

The actual fix for this is to use PlatformTypes.windows.js but update vnext\.flowconfig to ignore the base PlatformTypes.js.

jonthysell avatar May 22 '25 17:05 jonthysell

@anupriya13 is this needed for the 0.79 release? if not, please move it to the 80 or next milestone!

TatianaKapos avatar Jun 05 '25 00:06 TatianaKapos