1

我有一个输入,我想更改(例如)它的fontFamily。我在文档中找不到任何解决方案。有什么办法可以改变错误信息的样式吗?

4

1 回答 1

1

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>
                },

            }
        };
于 2018-11-20T19:22:00.817 回答