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

Fixed #78 Invalid Icon 'component' propType #176

Closed
wants to merge 1 commit into from
Closed

Fixed #78 Invalid Icon 'component' propType #176

wants to merge 1 commit into from

Conversation

max2three
Copy link
Contributor

I think React Native Components are mostly 'func' type. 'element' type returns true if it is constructed using React.createElement().

I think React Native Components are mostly 'func' type. 'element' type returns true if it is constructed using `React.createElement()`.
@Monte9
Copy link
Collaborator

Monte9 commented Feb 12, 2017

@max2three can you link me to any documention that explicilty states this? Thanks.

@max2three
Copy link
Contributor Author

max2three commented Feb 13, 2017

@Monte9
React.PropTypes.element
React Element
React Component

So, I think validating a component against element type will always gives you a warning as they are not the same.

Correction: Calling React.createElement() explicitly if you are not using JSX.

@max2three
Copy link
Contributor Author

Closed this PR as issue #78 is closed.

@max2three max2three closed this Feb 22, 2017
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

Successfully merging this pull request may close these issues.

2 participants