react-native-web-starter icon indicating copy to clipboard operation
react-native-web-starter copied to clipboard

Add support for flow

Open agrcrobles opened this issue 9 years ago • 2 comments

There is no way to add flow to any react-native-web project.

The message shown is the following:

import ReactNative from "react-native";
                             ^^^^^^^^^^^^^^ react-native. Required module not found

agrcrobles avatar Jul 13 '16 16:07 agrcrobles

I'm not to familiar with flow, as I'm usually not mixing types with my front-end. But I do enjoy typescript in my nodejs project, therefore I will definitely look up for a flow integration at some point. I might launch another RN4Web project soon (in the next fortnight), and will then add this feature to my roadmap. Any leads/tips would be appreciated.

grabcode avatar Sep 28 '16 11:09 grabcode

I think we can start declaring the types as unsafe as I am doing here in order to make flow build.

But unsafe types should be replaced to have some flow syntax in the ide and having webpack building react-native-web that is not simple.

agrcrobles avatar Mar 21 '17 22:03 agrcrobles