# FieldElement

> This document is the Markdown version of [formisch.dev/react-native/api/FieldElement/](https://formisch.dev/react-native/api/FieldElement/). For the complete documentation index, see [llms.txt](https://formisch.dev/llms.txt).

The imperative methods of the native components that can be registered with a field store.

## Definition

- `FieldElement`
  - `focus` `() => void`
  - `blur` `(() => void) | undefined`
  - `isFocused` `(() => boolean) | undefined`

### Explanation

React Native has no DOM elements. Instead of a union of HTML elements, `FieldElement` is a structural subset of the imperative methods that React Native host component instances provide. This way the refs of `TextInput` and other focusable native components are accepted without depending on the `react-native` package.

Only `focus` is required, as it is what [`focus`](/methods/api/focus.md) calls to focus a field. `isFocused` is implemented by `TextInput` and is used to verify that an element actually received focus, so that elements which cannot be focused are skipped.

## Related

### Methods

[`focus`](/methods/api/focus.md)

### Types

[`FieldElementProps`](/react-native/api/FieldElementProps.md)
