> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# findViewByName

APISummary
Find `UIView` based on name attribute.

## Syntax

### Android

```java
public View findViewByName(String name);
```

#### Parameters

- `name`: The name attribute of the view specified by the front end in the layout file.

#### Return

- The `UIView` node corresponding to the name attribute.

### iOS

```objc
- (nullable UIView *)findViewWithName:(nonnull NSString *)name;
```

#### Parameters

- `name`: The name attribute of the view specified by the front end in the layout file.

#### Return

- The `UIView` node corresponding to the name attribute.

## Compatibility

**Compatibility Table**

**Query:** `lynx-native-api.lynx-view.find-view-by-name`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/lynx-view/find-view-by-name.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| find-view-by-name | Yes (1.0) | No | Yes (1.0) | No | No | No |

**`find-view-by-name`**

find view by name

**Specifications:**

