React Native text area

I am trying to display the text(with html quotes from DB => <p>promotions page</p>) in react native. I have to display this text without html quotes in react native, Text and TextInput are not working. Is there is any way?

why not use String.replace('tag', '')?

I use this package https://github.com/jsdf/react-native-htmlview

Example:

var html = '<p>promotions page</p>'
var styles = StyleSheet.create({p: { color: <color>}}) 
<HTMLView
  value={html}
  stylesheet={styles}
/>

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

flutter websocket connection issue