Skip to content

Conversation

@truca
Copy link

@truca truca commented Jan 14, 2018

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

Also, I changed the dependency to react-native-osd-simple-button to my fork of it (did the same with proptypes in that repo too)

Fixing #6

Copy link
Contributor

@adrienthiery adrienthiery left a comment

Choose a reason for hiding this comment

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

Thanks again for contributing.

Just a few comments (similar to the ones on the button) and I'll be able to merge :)

label: React.PropTypes.string,
mode: React.PropTypes.oneOf([
iosDoneButtonText: PropTypes.string,
iosDoneButtonStyle: PropTypes.containerStyle,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this would work, I doubt the React PropTypes have a containerStyle type.

I think the Button.propTypes should stay that way, as they are using react-native-osd-simple-button's propTypes

View,
} from 'react-native';
import Button from 'react-native-osd-simple-button';
import PropTypes from 'prop-types'
Copy link
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 of the line to keep up with linting rules please?

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