Skip to main content

Variable: BarCode

const BarCode: ForwardRefExoticComponent<Omit<WithStyledProps<ViewProps>, "styled"> & object & object & RefAttributes<View>>

Defined in: packages/@mapples/ui/src/components/media/BarCode/BarCode.tsx:163

A customizable barcode component with built-in styling support.

The BarCode component renders a barcode using BarcodeEncoder for generation and react-native-svg for rendering. It supports customizable styling through the @mapples/style system.

Example​

<BarCode
value="123456789"
height={100}
width={2}
styled={{
style: {
width: 300,
height: 100,
alignItems: 'center',
justifyContent: 'center',
},
}}
/>