Skip to content

Commit 50667ec

Browse files
aswinandrofacebook-github-bot
authored andcommitted
Publish top-level Flow types for react-native (#51908)
Summary: FIXED Add index.js.flow to npm package files for Flow support Currently, the distributed npm package for react-native does not include the index.js.flow file, which causes all exports to be typed as any when using Flow. This commit adds index.js.flow to the "files" array in package.json, ensuring Flow users receive proper type definitions out of the box. This addresses issues where type checking with Flow fails in React Native projects. ## Changelog: [General][Added] Publish top-level Flow types for `react-native` Pull Request resolved: #51908 Reviewed By: huntie, necolas Differential Revision: D76292301 Pulled By: robhogan fbshipit-source-id: e56360d3f35af30ef160470181349aac1812e7c1
1 parent e82a677 commit 50667ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"gradle.properties",
8282
"gradle/libs.versions.toml",
8383
"index.js",
84+
"index.flow.js",
8485
"interface.js",
8586
"jest-preset.js",
8687
"jest",

0 commit comments

Comments
 (0)