Skip to content

Add support for onBlur prop #13365

@chiaramooney

Description

@chiaramooney

Documentation

https://reactnative.dev/docs/touchablewithoutfeedback#onfocus

Behavior

Handler invoked when component is focused. This prop is only supported for some of the core component set. Take a look at the sub issues below to see which components should have their onFocus prop implemented.

We could use UIA data to determine when a component has gained focus. Possible helpful APIs:

Implementation Plan

We should:

  1. Store the callback function for a component that has its onBlur prop set.
  2. Create an event handler to monitor when the component incurs a blur (loss of focus) event. When the blur event occurs, call the callback function.

To Be Clarified

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions