Package Exports
- react-native-ksi-barcode
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-ksi-barcode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-native-ksi-barcode
barcode code128 generator
- install
npm i -S react-native-ksi-barcode- native setup
rnpm link react-native-ksi-barcode- using
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import KsiBarcode from "react-native-ksi-barcode"
class barcodetest extends Component {
render() {
return (
<View style={styles.container}>
<KsiBarcode text="ME2T53DPC"/>
<KsiBarcode text="1212121"/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
AppRegistry.registerComponent('barcodetest', () => barcodetest);Component is Text View extended.
pops is text attribute appended.