Anthony Tietjen
Anthony Tietjen

Reputation: 1064

React Native with FlowType: Exporting and importing js interfaces

I'm using FlowType on a React native project and I want to put a JavaScript interface in its own file for sharing throughout the project. Thoughts?

Upvotes: 0

Views: 728

Answers (1)

Anthony Tietjen
Anthony Tietjen

Reputation: 1064

The trick is to use export type and import type.

I found the answer here:

https://flowtype.org/docs/modules.html#type-imports--exports

Upvotes: 1

Related Questions