Modifiers
submitLabel
Specifies the label to display in the keyboard's return key. For example, 'done'.
submitLabel(submitLabel)
iOS 15+
| Parameter | Type | Description |
|---|---|---|
submitLabel | 'search' | 'join' | 'done' | 'send' | 'continue' | 'return' | 'go' | 'next' | 'route' | The label to display in the keyboard's return key. |
Specifies the label to display in the keyboard's return key. For example, 'done'.
Returns: ModifierConfig
A view that uses the specified submit label.
Example
<TextField
modifiers={[
submitLabel('search'),
]}
/>Works with
Sources
The original Expo docs for this page:
- submitLabel (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)