Flow support for Expo?

I don’t think there are flow types for Expo yet.

How i’m getting around it is, in my .flowconfig under [options] I added:

module.name_mapper='^expo$' -> '<PROJECT_ROOT>/flowTypes/expoTypes'

Then I created the folder ‘flowTypes’ and a file inside of ‘expoTypes’.


// @flow

const WebBrowser: any = {};

export default {};
export { WebBrowser };

Then I add every expo type in here that I eventually use so that it fixes my flow errors. Added bonus, is that it’s very easy to see what APIs i depend on expo now. All i need to do is look at this file ha.