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. */