wonsikin / react-native-barcode-builder

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

Add a way to find the required view width for the barcode #37

Open mbaltaks opened 5 years ago

mbaltaks commented 5 years ago

The ability to find the required width for a render of the barcode data allows figuring out the largest line width that can be used for a particular view, and even determining when the barcode data will not fit in a view. (Finding the view size requires something like https://cmichel.io/how-to-get-the-size-of-a-react-native-view-dynamically). I'm new to JavaScript and React Native, so there might be problems with this code, but it does seem to work.

faroutchris commented 4 years ago

Why has this PR been ignored for over 1 year?