Expo UI and Router for iOSExpo SDK 57 and later, iOS only
Modifiers

textContentType

Sets the text content type for input text, which the system uses to offer suggestions (like autofill) while the user enters text.

textContentType(textContentType)

iOS 13+
ParameterTypeDescription
textContentType'location' | 'name' | 'URL' | 'namePrefix' | 'nameSuffix' | 'givenName' | 'middleName' | 'familyName' | 'nickname' | 'organizationName' | 'jobTitle' | 'fullStreetAddress' | 'streetAddressLine1' | 'streetAddressLine2' | 'addressCity' | 'addressCityAndState' | 'addressState' | 'postalCode' | 'sublocality' | 'countryName' | 'username' | 'password' | 'newPassword' | 'oneTimeCode' | 'emailAddress' | 'telephoneNumber' | 'cellularEID' | 'cellularIMEI' | 'creditCardNumber' | 'creditCardExpiration' | 'creditCardExpirationMonth' | 'creditCardExpirationYear' | 'creditCardSecurityCode' | 'creditCardType' | 'creditCardName' | 'creditCardGivenName' | 'creditCardMiddleName' | 'creditCardFamilyName' | 'birthdate' | 'birthdateDay' | 'birthdateMonth' | 'birthdateYear' | 'dateTime' | 'flightNumber' | 'shipmentTrackingNumber'The semantic meaning of the text input area.

Sets the text content type for input text, which the system uses to offer suggestions (like autofill) while the user enters text.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

textContentType is made for these components. On other components it has no effect.

Sources

The original Expo docs for this page:

On this page