question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add flow types to AccessibilityAndroidExample.android.js

See original GitHub issue

Description

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:

  1. Add the @flow annotation to AccessibilityAndroidExample.android.js
  2. Run flow status and fix any Flow errors that appear.
  3. Bonus: Update the file to use @flow strict-local

Expected Results

AccessibilityAndroidExample.android.js is annotated with proper flow types.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
kaciebcommented, May 14, 2021

@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! 🎉

1reaction
sidverma32commented, May 14, 2021

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 😉]

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found