Skip to content

Implement TextInput.onSubmitEditing for Fabric #11459

Closed
@chrisglein

Description

@chrisglein

Part of #11145

Example

      <TextInput
        accessibilityLabel="Prompt input"
        multiline={true}
        placeholder="Ask me anything"
        style={{flexGrow: 1, flexShrink: 1}}
        onChangeText={newValue => setValue(newValue)}
        submitKeyEvents={[{code: 'Enter', shiftKey: false}]}
        onSubmitEditing={submitValue}
        value={defaultText ?? value}/>

Metadata

Metadata

Assignees

Labels

Area: FabricSupport Facebook FabricArea: TextInputNew ArchitectureBroad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabricenhancement

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions