From 36f303c42e196e17115e5aaf8242ec1560861f54 Mon Sep 17 00:00:00 2001 From: zealotchen Date: Tue, 7 Jan 2025 19:56:06 +0800 Subject: [PATCH] feat(react): add text input type --- .../js/packages/hippy-react/src/components/text-input.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/driver/js/packages/hippy-react/src/components/text-input.tsx b/driver/js/packages/hippy-react/src/components/text-input.tsx index ff0af90940f..3dbc9f1510b 100644 --- a/driver/js/packages/hippy-react/src/components/text-input.tsx +++ b/driver/js/packages/hippy-react/src/components/text-input.tsx @@ -116,7 +116,7 @@ interface TextInputProps extends LayoutableProps, ClickableProps { /** * The string that will be rendered before text input has been entered. */ - placeholder?: number; + placeholder?: string; /** * The text color of the placeholder string. @@ -135,6 +135,11 @@ interface TextInputProps extends LayoutableProps, ClickableProps { */ onBlur?: () => void; + /** + * Callback that is called when the text input is focused. + */ + onFocus?: () => void; + /** * Callback that is called when text input ends. */