Maksim
Maksim

Reputation: 2466

How to change cursor position on TextInput? (react-native)

I can get cursor position using

onSelectionChange={(event) => console.log(event.nativeEvent.selection)}

But how to change it?

Upvotes: 4

Views: 6671

Answers (2)

user7153292
user7153292

Reputation:

some have used the TextInput as TouchableHighlight, I want to press the TextInput and then it is sent to another window with the Actions.Places ({type: 'replace'}); Then that data obtained through google places are shown in my TextInput. Something like this catch

Upvotes: 0

Aobo Cheng
Aobo Cheng

Reputation: 4528

react-native-textinput-utils <- This lib can help u.

Till now there's no api for us to change it.

You could subscribe this issue for furture improvement.

Upvotes: 2

Related Questions