react-native-htmlview icon indicating copy to clipboard operation
react-native-htmlview copied to clipboard

Show icon instead of bullets

Open AmmarTariq10 opened this issue 6 years ago • 2 comments

Is there anyway to show icon or image instead of bullets in lists?

AmmarTariq10 avatar Nov 08 '18 08:11 AmmarTariq10

Any updates on this?

AmmarTariq10 avatar Nov 12 '18 16:11 AmmarTariq10

You can use bullet props to render Icon or image. I have rendered circle icon as below :

<HTMLView
  value={this.state.dataSource}
  paragraphBreak={'\n'}
  lineBreak={''}
  stylesheet={styles}
  bullet={(<Icon name="circle" size={12} color="#444444" />)}
  renderNode={this.renderNode}
/>

kishanbharda avatar Feb 24 '20 07:02 kishanbharda