-
Notifications
You must be signed in to change notification settings - Fork 976
Port project to Typescript + Flow Types #805
Description
Describe the Feature
Since we have been doing a lot of changes to react-native-share with new documentation and improvements on the example application, aiming to make the life of any contributor easier.
Following the example of react-navigation which mainly uses TS now, it would simpler to update types, etc.
My idea is porting the main files which are currently written in plain .js with flow to ts. But maintaining the support for flow types. (Any examples are welcome)
Possible Implementations
Firstly, we need to map the common APIs exported from react-native-share and their respective/expected types. We can use the types from DefinitelyTyped as a start point.
After that, we only need to ensure that the compiled version of these files is working with both ts, flow, and js projects without any drawbacks.
Roadmap
- Port main js files to TS
- Ensure that both
flowtypes andtsare supported - Compile project on CI before publish to
npm