Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 422 Bytes

textinput.md

File metadata and controls

19 lines (16 loc) · 422 Bytes
id textinput
title TextInput
officialDoc https://reactnative.dev/docs/textinput
let (text, setText) = React.useState(() => "")

<TextInput
  value=text
  onChangeText={v => setText(_ => v)}
  placeholder="Type here"
  style={Style.s({borderWidth: 1., padding: 8.->dp})}
/>

Events include onChange, onEndEditing, onSubmitEditing, onContentSizeChange, etc. (see binding for full props).