-
Notifications
You must be signed in to change notification settings - Fork 71
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
Adds arrowDirection
prop
#17
Conversation
longPress: React.PropTypes.bool, | ||
...TouchableHighlight.propTypes, | ||
}; | ||
|
||
var ViewClass = React.createClass({ | ||
showMenu: function() { | ||
ToolTipMenu.show(findNodeHandle(this.refs.toolTipText), this.getOptionTexts()); | ||
ToolTipMenu.show(findNodeHandle(this.refs.toolTipText), this.getOptionTexts(), this.props.arrowDirection || 'down'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use defaultProps
for this
Thanks for the PR, can you update the doc too? |
…values. Updated documentation
@jrichardlai Updated the documentation, PropType declaration and set the defaultProp value for arrowDirection |
longPress: React.PropTypes.bool, | ||
...TouchableHighlight.propTypes, | ||
}; | ||
|
||
var ViewClass = React.createClass({ | ||
getDefaultProps: function() { | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use 2 spaces here :)!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All fixed!
Thanks! |
This adds the ability to declare where the ToolTip displays