Shahanshah Alam
Shahanshah Alam

Reputation: 605

Break the line when reached to end of TextInput view

I want to break the line of text in TextInput when reaches to end of TextInput. enter image description here

I don't want to increase the height of TextInput. It will be scrollable inside TextInput.

I did try FlexWrap but it didn't work for me.

Thanks!!!

Upvotes: 1

Views: 55

Answers (1)

yaya
yaya

Reputation: 8243

use multiline={true}:

<TextInput
    multiline={true}
    numberOfLines={4}
    style={{ height:200, textAlignVertical: 'top',}}
    ...
/>

Upvotes: 1

Related Questions