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.
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.
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.
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