Skip to content

Conversation

@buschco
Copy link
Contributor

@buschco buschco commented Jun 20, 2025

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:

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

@facebook-github-bot
Copy link
Contributor

Hi @buschco!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@buschco
Copy link
Contributor Author

buschco commented Jun 20, 2025

@robhogan here is my PR

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 20, 2025
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jun 20, 2025
@facebook-github-bot
Copy link
Contributor

@robhogan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 21, 2025
@facebook-github-bot
Copy link
Contributor

@robhogan merged this pull request in fbbd20d.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @buschco in fbbd20d

When will my fix make it into a release? | How to file a pick request?

react-native-bot pushed a commit that referenced this pull request Jun 23, 2025
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
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @buschco in b2cc82b

When will my fix make it into a release? | How to file a pick request?

@necolas
Copy link
Contributor

necolas commented Jun 23, 2025

Is there a way we can test this? 50667ec didn't fix the issue and we won't really know if this break again without some kind of test coverage

fabriziocucci pushed a commit that referenced this pull request Jul 1, 2025
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
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @buschco in bf07da1

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please include index.js.flow in the npm package

4 participants