import React, { Component } from 'react';
import * as t from 'tcomb-form-native';
import { SingleLineForm } from './SingleLineForm';
export class PromoForm extends Component {
    constructor(props) {
        super(props);
        this.fieldsTypes = t.struct({
            promoCode: t.String
        });
        this.fieldsOptions = Object.assign({}, props.fieldsOptions, { promoCode: Object.assign({ auto: 'none', placeholder: 'Enter Promo Code', returnKeyType: 'go', autoCorrect: false, autoCapitalize: 'none', error: 'Please enter a valid promo code' }, props.fieldsOptions.promoCode) });
    }
    render() {
        return (<SingleLineForm {...this.props} fieldsTypes={this.fieldsTypes} fieldsOptions={this.fieldsOptions}/>);
    }
}
//# sourceMappingURL=PromoForm.js.map