Replace React.AbstractComponent with component type in TextInput (#46925)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/46925

Prepare for the ref-as-prop typing change in flow.

Changelog: [Internal]

Reviewed By: SamChou19815

Differential Revision: D64109824

fbshipit-source-id: 9823a459c9bd4f3eed4d3c560f0bdaf4be16d410
This commit is contained in:
Fabrizio Cucci
2024-10-10 10:59:58 -07:00
committed by Facebook GitHub Bot
parent e39c91703d
commit 5d07c7232c
@@ -1787,11 +1787,11 @@ const autoCompleteWebToTextContentTypeMap = {
username: 'username',
};
const ExportedForwardRef: React.AbstractComponent<
React.ElementConfig<typeof InternalTextInput>,
TextInputInstance,
const ExportedForwardRef: component(
ref: React.RefSetter<TextInputInstance>,
...props: React.ElementConfig<typeof InternalTextInput>
// $FlowFixMe[incompatible-call]
> = React.forwardRef(function TextInput(
) = React.forwardRef(function TextInput(
{
allowFontScaling = true,
rejectResponderTermination = true,