fix renderCustomText

This commit is contained in:
Mark Vayngrib
2016-01-30 11:38:29 -05:00
parent e9cc50f3c2
commit eac0125a43

View File

@@ -45,7 +45,7 @@ export default class Bubble extends React.Component {
renderText(text = "", position) {
if (this.props.renderCustomText) {
return this.props.renderCustomText(rowData, rowID);
return this.props.renderCustomText(text, position);
}
return (
<Text style={[styles.text, (position === 'left' ? styles.textLeft : styles.textRight)]}>