wonsikin / react-native-barcode-builder

Component for generating barcode in react native app
Other
175 stars 116 forks source link

Barcode text is not customisable #62

Closed PranjaliPatil14 closed 3 years ago

PranjaliPatil14 commented 3 years ago

Currently the barcode text size is fixed, we can't change it. Also It does not take any prop around it's styling. We should be able to configure the barcode Text component.

Screenshot 2020-12-02 at 9 41 20 AM

In my use case I want some other style for barcode text(1234567890128).

Solution: Provide textComponent prop

textComponent prop will expect a react element. As we are passing our own component to render, the control is in developer's hand. it won't be a required prop. The default value of prop will be the current Text component which shows the text.

What are your views @wonsikin ?

If this sounds good. I can raise PR for this