diff --git a/native/components/text-input.react.js b/native/components/text-input.react.js index a2688bfc7..a21fccb31 100644 --- a/native/components/text-input.react.js +++ b/native/components/text-input.react.js @@ -1,29 +1,24 @@ // @flow import * as React from 'react'; -import { TextInput as BaseTextInput } from 'react-native'; +import { TextInput } from 'react-native'; import { useKeyboardAppearance } from '../themes/colors'; -type Props = React.ElementConfig; -function ForwardedTextInput( - props: Props, - ref: React.Ref, -): React.Node { +type Props = React.ElementConfig; +function ForwardedTextInput(props: Props, ref): React.Node { const keyboardAppearance = useKeyboardAppearance(); return ( - + ); } -const TextInput: React.AbstractComponent< +const WrappedTextInput: React.AbstractComponent< Props, - typeof BaseTextInput, -> = React.forwardRef(ForwardedTextInput); -TextInput.displayName = 'CommTextInput'; + React.ElementRef, +> = React.forwardRef>( + ForwardedTextInput, +); +WrappedTextInput.displayName = 'CommTextInput'; -export default TextInput; +export default WrappedTextInput;