title: React-native-barcode-builder usage in android
body: <p>In my react-native project I'd like to generate barcode from given value. I found react-native-barcode-builder but I don't know how to use this library in android correctly. I've already install by <code>npm install --save react-native-barcode-builder</code> but when I want to import library in project I have following error: </p>
  
  <blockquote>
    <p>undefined is not an object (evaluating 'undefined.hex')</p>
  </blockquote>
  
  <p>I think I should link this library by <code>react-native link</code> but it doesn't change anything. Every sample is for Xcode, but I developing on Windows in WebStorm. Can anyone tell me how to correctly use this library? </p>
  
  <p>This is my code:</p>
  
  <pre><code>import React, {Component} from 'react';
  import {connect} from 'react-redux';
  import Barcode from 'react-native-barcode-builder'
  import Dimensions from 'Dimensions';
  import {
      StyleSheet,
      View,
      Image
  } from 'react-native';
  
  const DEVICE_WIDTH = Dimensions.get('window').width;
  const DEVICE_HEIGHT = Dimensions.get('window').height;
  
  class CardDetailsScreen extends Component {
      render() {
          return (
              &lt;View style={styles.container}&gt;
                  &lt;Image source={this.props.imageSource} style={styles.image}/&gt;
                  &lt;Barcode value="Hello world" format="EAN-13"/&gt;
              &lt;/View&gt;
          )
      }
  }
  
  const styles = StyleSheet.create({
      container: {
          flex: 1,
      },
      image: {
          width: DEVICE_WIDTH,
          height: 250,
      }
  });
  
  const mapStateToProps = (state) =&gt; {
      return {
          card: state.card
      };
  };
  
  const mapDispatchToProps = (dispatch) =&gt; {
      return {
          getCardData() {
              console.log('test');
          }
      }
  };
  
  export default connect(mapStateToProps, mapDispatchToProps)(CardDetailsScreen);
  </code></pre>