Skip to content

Instantly share code, notes, and snippets.

Avatar

Nikolay Radkov nikolay-radkov

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am nikolay-radkov on github.
  • I am nikolayradkov (https://keybase.io/nikolayradkov) on keybase.
  • I have a public key ASC1JKosYLKHOxhHRWqD3nrLHbNZ_QxiWBydA_MRJNnvEwo

To claim this, I am signing this object:

View TextInput add new lines in multiline mode
<TextInput
multiline
blurOnSubmit={false}
onChangeText={(text) => {
this.setState({ text });
}}
value={this.state.text}
onSelectionChange={(event) => this.setState({ cursorPosition: event.nativeEvent.selection.start })}
onSubmitEditing={(event) => {
const { text, cursorPosition } = this.state;