This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 54).

TextField

A SwiftUI TextField component for text input.

iOS
tvOS

A text field component that allows users to enter and edit text.

Installation

Terminal
npx expo install @expo/ui

If you are installing this in an existing React Native app, make sure to install expo in your project.

Usage

import { Host, TextField } from '@expo/ui/swift-ui'; <Host matchContents> <TextField autocorrection={false} defaultValue="A single line text input" onChangeText={setValue} /> </Host>

See official SwiftUI documentation for more information.

API

import { TextField } from '@expo/ui/swift-ui';

No API data file found, sorry!