forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
types: Relocate some
$FlowFixMe
s and correct their TODOs.
As noted in the code comments, one mistake we were making (not seen until now) was passing the wrong type parameter to `React$Ref`; we should be passing a `React$ElementRef` type [1]. When we do that, the existing `$FlowFixMe`s (the ones with comments about RN v0.63) are marked as unused, as we'd expect. But unfortunately, at that point, `.current` is typed as `any(implicit)`, which we definitely don't want. And that doesn't seem to get fixed by upgrading to RN v0.63, so, remove the comments about that new version. Greg suggests this may be caused by bugs in Flow's special support for React [2]. So, mention our new knowledge that we need to be using `React$ElementRef`, but retain some fixmes and comments alerting us to the fact that `.current` is untyped and that we need to be careful about using it. [1] zulip#4278 (comment) [2] zulip#4420 (comment)
- Loading branch information
1 parent
44dafc9
commit 1e5c664
Showing
4 changed files
with
33 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters