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

Is there a way to ignore links ?

Open tahola opened this issue 3 years ago • 1 comments

Hello,

is there any way to completely ignore the links ?

Right now I have to do that :

"onLinkPress={(url) => {
console.log('do nothing');
}}"

And then add the parent color on my links : const stylesHtml = StyleSheet.create({ p: { color: textColor, }, a: { color: textColor, },

Is there a better way ?

tahola avatar Jul 28 '22 06:07 tahola

Maybe use renderNode on HTMLView to render links as a <Text> element?

sampie777 avatar Jan 03 '23 15:01 sampie777