Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destructured prop types #1

Open
reintroducing opened this issue Jun 27, 2018 · 2 comments
Open

Destructured prop types #1

reintroducing opened this issue Jun 27, 2018 · 2 comments

Comments

@reintroducing
Copy link

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
Copy link
Contributor

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

@mhelvens
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants