react-thermal-printer icon indicating copy to clipboard operation
react-thermal-printer copied to clipboard

Row throws an error when string from right side is too big

Open vitorsilvalima opened this issue 1 year ago • 1 comments

The row component throws an error if the string length from right side is too big

example:

<Row
        left={<Text>CEP:</Text>}
        right={
          <Text>Antiga 18 portão de garagem vermelho casa de esquina</Text>
        }
/>

Error thrown: Possible Unhandled Promise Rejection (id: 2):

RangeError: String.prototype.repeat count must be finite and non-negative RangeError: String.prototype.repeat count must be finite and non-negative

vitorsilvalima avatar Aug 09 '23 23:08 vitorsilvalima

Share the whole code. I faced similar issues and solved it, but I can't see the mistakes I did in your code.

Hassan-jr avatar Aug 10 '23 13:08 Hassan-jr