Nativebase: How is Input used to make multiline textboxes?

Created on 24 Dec 2016  路  2Comments  路  Source: GeekyAnts/NativeBase

I'm looking for a multiline text input control. TextArea seems to be the right way to go but there are no docs for it. I can't figure out how to get input to do multiline either.

  <InputGroup borderType='regular'>
                        <Textarea rowSpan={10} style={{
                            width: 200
                        }} placeholder='Type your text here'/>
                    </InputGroup>

InputGroup borderType='regular'>
                        <Input style={{
                            width: 200,
                            height: 300
                        }} placeholder='Type your text here'/>
                    </InputGroup>

Neither of those are really doing what I'm looking for.

Most helpful comment

Looks like multiline is the trick:

  <InputGroup borderType='regular'>
                        <Input style={{
                            width: 200, height: 200
                        }}  multiline={true} placeholder='Type your text here'/>
                    </InputGroup>

I see Textarea in the source code but don't see it in the docs. Is it deprecated?

All 2 comments

Looks like multiline is the trick:

  <InputGroup borderType='regular'>
                        <Input style={{
                            width: 200, height: 200
                        }}  multiline={true} placeholder='Type your text here'/>
                    </InputGroup>

I see Textarea in the source code but don't see it in the docs. Is it deprecated?

Not exactly deprecated, but since we can achieve the same results with multiline, we're not sure if TextArea will be very useful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nschurmann picture nschurmann  路  3Comments

kitsune7 picture kitsune7  路  3Comments

Bundas picture Bundas  路  3Comments

natashache picture natashache  路  3Comments

omerdn1 picture omerdn1  路  3Comments