Skip to content

Commit

Permalink
TextInput: Add onPressIn and onPressOut docs
Browse files Browse the repository at this point in the history
Original summary by @yungsters in [1b994f9](facebook/react-native@b7b0e23):
Introduces support for `onPressIn` and `onPressOut` on the `TextInput` component.

This makes it possible to add visual feedback when users touch interact with `TextInput` components.
  • Loading branch information
ecreeth authored Sep 8, 2020
1 parent cc2197e commit 887c27f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/textinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,26 @@ Callback that is called when text input ends.

---

### `onPressIn`

Callback that is called when a touch is engaged.

| Type | Required |
| -------- | -------- |
| function | No |

---

### `onPressOut`

Callback that is called when a touch is released.

| Type | Required |
| -------- | -------- |
| function | No |

---

### `onFocus`

Callback that is called when the text input is focused. This is called with `{ nativeEvent: { target } }`.
Expand Down

0 comments on commit 887c27f

Please sign in to comment.