import React, { Component } from 'react';
import { StyleSheet, Text } from 'react-native';
const style = StyleSheet.create({
    variantText: {
        fontSize: 12
    }
});
export class ProductItemVariant extends Component {
    render() {
        const { variantText, variantTextStyle, renderVariantText } = this.props;
        if (renderVariantText) {
            return renderVariantText();
        }
        if (!variantText) {
            return null;
        }
        return <Text style={[style.variantText, variantTextStyle]}>{variantText}</Text>;
    }
}
//# sourceMappingURL=ProductItemVariant.js.map