Skip to content

Commit b2cc82b

Browse files
buschcoreact-native-bot
authored andcommitted
publish index.js.flow instead of index.flow.js (#52179)
Summary: I think in 50667ec the file name was mixed up. Instead of `index.flow.js` it should be `index.js.flow` (see https://github.com/facebook/react-native/blob/main/packages/react-native/index.js.flow) Should fix #51885 ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. [General][Added] Publish top-level Flow types for `react-native` For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #52179 Test Plan: Steps to reproduce 1. Setup a react-native project with flow (or clone https://github.com/buschco/react-native-flow + `cd ReproducerApp && npm i`) 2. `import {Alert} from 'react-native'` -> `Alert` has type `any` 3. add `index.js.flow` File (https://github.com/facebook/react-native/blob/v0.79.3/packages/react-native/index.js.flow) to `node_modules/react-native/index.js.flow` -> `Alert` no longer `any` Reviewed By: christophpurrer Differential Revision: D77052871 Pulled By: robhogan fbshipit-source-id: 32b0052a9d96486aff66a1f6e4577ff62cbcd97e
1 parent 2cb1f8e commit b2cc82b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"gradle.properties",
8383
"gradle/libs.versions.toml",
8484
"index.js",
85-
"index.flow.js",
85+
"index.js.flow",
8686
"interface.js",
8787
"jest-preset.js",
8888
"jest",

0 commit comments

Comments
 (0)