Skip to content

Commit

Permalink
modify ToolTip.ios.js as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthraim committed Jun 8, 2016
1 parent 987583b commit bd80df4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ToolTip.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ var ViewClass = React.createClass({
ToolTipMenu.show(findNodeHandle(this.refs.toolTipText), this.getOptionTexts());
},

showMenuFromRect: function(x, y, w, h) {
ToolTipMenu.show(findNodeHandle(this.refs.toolTipText), this.getOptionTexts(), [x, y, w, h]);
},

getOptionTexts: function() {
return this.props.actions.map((option) => option.text);
},
Expand Down

0 comments on commit bd80df4

Please sign in to comment.