Add flow types to AccessibilityAndroidExample.android.js
See original GitHub issueDescription
AccessibilityAndroidExample.android.js does not have proper Flow types. Without Flow typing enforced, it is easy for bugs to be introduced when making changes to this file. This issue details the work to enforce Flow typing in this file.
Steps:
- Add the
@flowannotation to AccessibilityAndroidExample.android.js - Run
flow statusand fix any Flow errors that appear.- You can check out Flow’s getting started guide here: https://flow.org/en/docs/getting-started/
- You can check out Flow’s React-specific documentation here: https://flow.org/en/docs/react/components/
- An example file that is already annotated with
@flow: ScrollViewExample.js
- Bonus: Update the file to use
@flow strict-local
Expected Results
AccessibilityAndroidExample.android.js is annotated with proper flow types.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
Flow vs TypeScript: Which is Better in 2022? | Scalable Path®
Flow or TypeScript? Learn the pros and cons of both to help you decide which tool is best suited for your next JavaScript...
Read more >Any Types - JavaScript. Flow
When you are in the process of converting existing code to using Flow types and you are currently blocked on having the code...
Read more >A guide to Flow in React Native - JavaScript in Plain English
The first thing to do to get started with Flow is to add // @flow at the top of the document. This will...
Read more >Flow | IntelliJ IDEA Documentation - JetBrains
Flow is a static type checker that brings type annotations to JavaScript. IntelliJ IDEA recognizes Flow structures and provides syntax ...
Read more >How to incrementally add Flow to an existing React app
Finally, we need to install flow-types . We do this globally. npm install flow-typed -g. libdefs can either be full definitions or stubs...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@sidverma32 feel free to keep an eye on the React Native project boards if you are interested to keep contributing! We’re still working on adding to the Code Quality project, and the Accessibility project has a bunch!
Thanks so much for tackling this issue and making React Native better! 🎉
Thanks @kacieb for your help and support in closing this issue 🙏🏻🎉 . It was really great working experience on this PR and exploring things inside
react-native😊😎 [ Looking forward for some more challenges 😉]