documentation
documentation copied to clipboard
Not getting the right property types for react component using Flow
- What version of documentation.js are you using?: 13.1.0
- How are you running documentation.js (on the CLI, Node.js API, Grunt, other?): CLI
I have a react native project with Flow, for some reason the documentation does not show the actual types of the given component but instead it only shows props as Parameters.
type Props = {
name?: string,
age?: number,
};
const User = (props: Props) => {
}
export default User;
What it prints

Instead I would like for the props to show the actual types for each property.
Command: documentation serve ./packages/user/src/components/** --document-exported