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

textAlign: 'justify' not working

Open rochapablo opened this issue 6 years ago • 5 comments

Using { textAlign: 'justify' } nothing changes.

const styles = StyleSheet.create({
      a: {
        color: style.content.link.color,
        fontWeight: '300',
      },
      p: {
        color: this.props.data.color,
        fontSize: this.props.data.fontSize,
        lineHeight: this.props.data.lineHeight,
        marginBottom: 0,
        marginTop: 0,
        paddingBottom: 0,
        paddingTop: 0,
        textAlign: 'justify',
      },
    });
<HTMLView
                addLineBreaks={false}
                value={this.props.data.item.content}
                stylesheet={styles}
              // renderNode={this.renderDescription}
              />
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
"react-native-htmlview": "^0.13.0",
"react-native": "0.57.4",

Testing on Android emulator.

Only works with, left, center, right

rochapablo avatar Nov 28 '18 23:11 rochapablo

Same here.

cklinx avatar Dec 16 '18 18:12 cklinx

Same here.

wings-sakhi avatar Dec 24 '18 05:12 wings-sakhi

Was it working previously?

wings-sakhi avatar Dec 24 '18 05:12 wings-sakhi

justify not working on android tought not this component whole react native see here

https://stackoverflow.com/questions/43873546/react-native-textalign-justify

cgrcnr avatar Jun 27 '19 12:06 cgrcnr

Same here

OnurSevket avatar Aug 23 '21 12:08 OnurSevket