The .flowconfig and package.json changes come from React Native Upgrade Helper. The rest fix Flow errors uncovered by the update.
Historically I've split up Flow changes for a React Native upgrade, but this time there weren't too many!
Depends on D5903