Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ToolTip.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ var ViewClass = React.createClass({
} else {
props.onPress = this.showMenu;
}

// Override the style for the touchable highlight to fill the size of the tooltip container.
props.style = {
flex: 1,
alignSelf: 'stretch'
};

return props;
},
Expand All @@ -64,7 +70,7 @@ var ViewClass = React.createClass({

render: function() {
return (
<RCTToolTipText ref='toolTipText' onChange={this.handleToolTipTextChange}>
<RCTToolTipText ref='toolTipText' onChange={this.handleToolTipTextChange} style={this.props.style}>
<TouchableHighlight
{...this.getTouchableHighlightProps()}
>
Expand Down