feat:input add onSubmitEditing

This commit is contained in:
pengfei.zhou
2021-06-11 15:17:20 +08:00
committed by osborn
parent ff641bf983
commit 5263731dd7
12 changed files with 239 additions and 49 deletions

View File

@@ -72,6 +72,10 @@ export class Input extends View {
@Property
returnKeyType?: ReturnKeyType
@Property
onSubmitEditing?: (text: string) => void
getText(context: BridgeContext) {
return this.nativeChannel(context, 'getText')() as Promise<string>
}