【发布时间】:2017-09-26 05:00:39
【问题描述】:
我正在使用tcomb在react-native中构建一个表单,我的表单中的一个字段是birthDate: t.maybe(t.Date),但它似乎没有样式
const formRegistration = t.struct({
// other fields
birthDate: t.maybe(t.Date)
});
我还在options 下方添加了config:
const options = {
fields : {
birthDate: {
label: 'Birth Date',
mode: 'date',
config: {
format: (date) => myFormatFunction('DD MM YYYY', date),
dialogMode: 'spinner'
}
}
}
}
};
【问题讨论】:
标签: react-native tcomb-form-native