swushi / react-native-input-outline

MIT License
123 stars 15 forks source link

Multiline support #12

Closed swushi closed 3 years ago

swushi commented 3 years ago

This was already working as expected. Opened by mistake. Simply provide the multiline prop to the component.

SrBrahma commented 2 years ago

image

I think there should be a inputStyle property, so we can interact with it directly.

I added a textAlignVertical: 'top' to the code input style and the input is correctly aligned.

Edit: Beware that this align will move singleline text above by a little. Maybe the default could be this align top, and you could then set the default y to a little lower to compensate it