Skip to content
Open
Changes from 1 commit
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}>>
Copy link
Collaborator

Choose a reason for hiding this comment

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

there is syntax error here

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, copy/paste error. Fixed.

<TouchableHighlight
{...this.getTouchableHighlightProps()}
>
Expand Down