I have a TextInput
in my react-native application. When I set the value prop and the value is longer than the length of the TextInput
, it shows the text starting from the end and not the beginning. In iOS it works okay, it seems to be an Android issue. Is there a way to align the text to show from the start of the TextInput
or whichever is the preferred?
This is what I see:
This is what I want:
Here's my code
<TextInput
defaultValue={address}
ref="searchInput"
autoCorrect={false}
style={searchStyles.searchInputField}
placeholderTextColor={'#ddd'}
placeholder="Location"
onChangeText={query => this.search(query)}
/>