mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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,
|
||||
|
||||
Reference in New Issue
Block a user