TextInput

Summary: Changelog: [Internal] Add a flow type for TextInput

Reviewed By: yungsters

Differential Revision: D38883693

fbshipit-source-id: 798c1cfac55479420e683bd79d685a46c866c5d1
This commit is contained in:
Luna Wei
2022-09-15 17:06:17 -07:00
committed by Facebook GitHub Bot
parent 2f94476c01
commit 1cdeb20d54
2 changed files with 1053 additions and 8 deletions
File diff suppressed because it is too large Load Diff
+2 -8
View File
@@ -22,6 +22,7 @@ import TextInputState from './TextInputState';
import invariant from 'invariant';
import nullthrows from 'nullthrows';
import setAndForwardRef from '../../Utilities/setAndForwardRef';
import type {TextInputType} from './TextInput.flow';
import usePressability from '../../Pressability/usePressability';
@@ -1661,11 +1662,4 @@ const styles = StyleSheet.create({
});
// $FlowFixMe[unclear-type] Unclear type. Using `any` type is not safe.
module.exports = ((ExportedForwardRef: any): React.AbstractComponent<
React.ElementConfig<typeof InternalTextInput>,
$ReadOnly<{|
...React.ElementRef<HostComponent<mixed>>,
...ImperativeMethods,
|}>,
> &
TextInputComponentStatics);
module.exports = ((ExportedForwardRef: any): TextInputType);