react-native-bouncy-checkbox icon indicating copy to clipboard operation
react-native-bouncy-checkbox copied to clipboard

If padding is used in style, some text seems to be 'squeezed out'

Open ziniuguo opened this issue 4 years ago • 2 comments
trafficstars

my code:

<ScrollView style={{paddingHorizontal: 30}}>
    /* some code*/
    {this.state.list.map((item, index) => (
        <BouncyCheckbox
            /* something */
            key={index}
            text={some very long text}
        />
    )}
</ScrollView>

If i write paddingHorizontal, the text will be squeezed out.

7LLTS I2E3$}XS)4~5NW1AS

How to solve this problem

Thanks in advance!

ziniuguo avatar Jun 30 '21 07:06 ziniuguo

I added paddingRight: 30 (same value as the ScrollView one) in the style of BouncyCheckbox, it works. Although idk why.

ziniuguo avatar Jun 30 '21 07:06 ziniuguo

Hello @ziniuguo I've never used such a long text. I need to test it.

WrathChaos avatar Jun 30 '21 09:06 WrathChaos