I wanted to test flow in my React Native project. I ran flow and found that it had no effect on Android files. I found the below given code in .flowconfig:
[ignore]
# We fork some components by platform.
.*/*.web.js
.*/*.android.js
Why did the React Native team ignore these files? I was not able find much information about the same else where. I know that I can make edits and flow would start considering android files as well, but I am not sure if it'd be right. For example, this is what fabergua has commented on a issue Flow doesn't recognize platform-specific react-native files related to it:
@mhollweck : React Native's default .flowconfig is set up to ignore all .android.js files. You can work around this by changing -./[.]android.js to ./node_modules/./*[.]android.js in the .flowconfig of your project.
But, should we go ahead with such workaround? Wouldn't it mess with the project when we upgrade it via react-native-git-upgrade?