Closed Herxheimer closed 6 years ago
type attribute = textarea
, see https://github.com/gcanti/tcomb-form/blob/master/GUIDE.md#textbox-options
I tried setting the type attribute but nothing happened
Code:
const tcombForm = t.struct({
test: t.String
});
const options = {
fields: {
test: {
type: 'textarea'
},
}
};
Just tried with
const tcombForm = t.struct({
test: t.String
})
const options = {
fields: {
test: {
type: 'textarea',
attrs: {
rows: 20
}
}
}
}
and works fine
Thanks, but I tried your code in Atom and in a tcomb virtual playground here https://gcanti.github.io/resources/tcomb-form/playground/playground.html ...yet it still didn't work.
Do you have a link to a working example that I could look at?
Beware the playground is outdated
O ok that makes sense, I still tried the code in a hot loaded RN project but it didn't work. Is there a code example I could look at?
Wait, RN means React Native? Not sure if tcomb-form is able to run there..
Yes React Native, I've been using tcomb forms for my project and so far everything else has worked (forms, validation, styling) except for the text area
I'm not by any means a mobile developer so maybe in the meanwhile something has changed, but I thought you have to use tcomb-form-native
with RN
O no you're correct, I guess I posted this in the wrong thread.
Thanks!
I'm trying to create a customer support form that lets a user describe the issues they are having. I'm not sure how to create a large text field in tcomb