Skip to content

changed PropTypes reference#1

Open
truca wants to merge 1 commit into
Osedea:masterfrom
truca:master
Open

changed PropTypes reference#1
truca wants to merge 1 commit into
Osedea:masterfrom
truca:master

Conversation

@truca

@truca truca commented Jan 14, 2018

Copy link
Copy Markdown

React package don't have proptypes property anymore, instead it is in another package, "prop-types". I added the dependency and used it.

@adrienthiery adrienthiery left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @truca ,

Thanks a lot for the PR ! (and sorry for the delay)

I had just a few comments on the PR, if you wouldn't mind correcting them, I'll merge the PR right away after.

Thanks a lot for contributing :)

Comment thread Button.js
TouchableHighlight,
View,
} from 'react-native';
import PropTypes from 'prop-types'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a ; at the end to keep up with the linting rules please?

Comment thread Button.js
touchableContainerStyle: View.propTypes.style,
underlayColor: React.PropTypes.string,
uppercase: React.PropTypes.bool,
containerStyle: PropTypes.style,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use ViewPropTypes instead of PropTypes (react/react-native@53905a5)

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.

3 participants