mirror of
https://github.com/zhigang1992/react-native-gifted-chat.git
synced 2026-04-29 04:35:46 +08:00
fix renderCustomText
This commit is contained in:
@@ -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)]}>
|
||||
|
||||
Reference in New Issue
Block a user