jsdf / react-native-htmlview

A React Native component which renders HTML content as native views
ISC License
2.71k stars 467 forks source link

Is there a way to ignore links ? #347

Open tahola opened 2 years ago

tahola commented 2 years ago

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 ?

sampie777 commented 1 year ago

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