react native t-comb, is there any way to style the error message?

279 views Asked by At

I have an input which I want to change (for example) its fontFamily. I couldn't find any solution in the document. is there any way to change the style of the error message?

1

There are 1 answers

0
sina farbod On

I found the answer, just need to add error attribute to the field:

this.options = {
            auto: 'placeholders',
            fields: {
                phone: {
                    placeholder:'شماره تلفن',
                    placeholderTextColor: '#d1d5da',
                    stylesheet: stylesheet,
                    error: <Text style={[styles.font, styles.f13, {textAlign: 'left', color: "#ba2819"}]}>YOUR ERR</Text>
                },

            }
        };