siddharthkp / react-docgen-external-proptypes-handler

evaluate variables from external files for react-docgen
MIT License
34 stars 6 forks source link

Destructured prop types #1

Open reintroducing opened 6 years ago

reintroducing commented 6 years ago

Hey, thanks for this! Works great in this situation:

static propTypes = TextInputPropTypes;

When the propTypes are set to the external file, fantastic. However, if you destructure the props like so, it doesnt work:

static propTypes = {
    ...TextInputPropTypes,
    ...more props here specific to this component
};

Is there a way to make it work for these situations as well?

pasupuletics commented 6 years ago

@reintroducing Stay tune for next version, will add support for Destructured syntax.

mhelvens commented 6 years ago

Any update on this?