Skip to content

Commit

Permalink
flow: Enable Types-First mode!
Browse files Browse the repository at this point in the history
From Flow's perspective, we're fine to delay types-first until we're
on v0.143, which we'd normally take along with the RN v0.65 upgrade.

But, from experimentation, React Native v0.64's internal code seems
to have been written with Types-First, such that a few Flow errors
would show up if we tried to use RN v0.64 without Types-First
enabled. So, enable it, now that we can, and now that the RN v0.64
upgrade is on the horizon.

Fixes: zulip#4907
  • Loading branch information
chrisbobbe committed Sep 3, 2021
1 parent 49c7eef commit d1cd090
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,7 @@ module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js

types_first=true

[version]
^0.128.0

0 comments on commit d1cd090

Please sign in to comment.