mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 14:48:25 +00:00
Make TextInput event prop types less strict (#22673)
Summary: Similar to what was done here https://github.com/facebook/react-native/pull/22376 This allows using things like async functions with text input event props. Changelog: ---------- [General] [Fixed] - Make TextInput event prop types less strict Pull Request resolved: https://github.com/facebook/react-native/pull/22673 Reviewed By: TheSavior Differential Revision: D13492029 Pulled By: hramos fbshipit-source-id: 84e1a776a7ac1ae7567fbf4105b2be9be330610e
This commit is contained in:
parent
d162217609
commit
c3caca9210
@ -247,17 +247,17 @@ type Props = $ReadOnly<{|
|
|||||||
returnKeyType?: ?ReturnKeyType,
|
returnKeyType?: ?ReturnKeyType,
|
||||||
maxLength?: ?number,
|
maxLength?: ?number,
|
||||||
multiline?: ?boolean,
|
multiline?: ?boolean,
|
||||||
onBlur?: ?(e: BlurEvent) => void,
|
onBlur?: ?(e: BlurEvent) => mixed,
|
||||||
onFocus?: ?(e: FocusEvent) => void,
|
onFocus?: ?(e: FocusEvent) => mixed,
|
||||||
onChange?: ?(e: ChangeEvent) => void,
|
onChange?: ?(e: ChangeEvent) => mixed,
|
||||||
onChangeText?: ?(text: string) => void,
|
onChangeText?: ?(text: string) => mixed,
|
||||||
onContentSizeChange?: ?(e: ContentSizeChangeEvent) => void,
|
onContentSizeChange?: ?(e: ContentSizeChangeEvent) => mixed,
|
||||||
onTextInput?: ?(e: TextInputEvent) => void,
|
onTextInput?: ?(e: TextInputEvent) => mixed,
|
||||||
onEndEditing?: ?(e: EditingEvent) => void,
|
onEndEditing?: ?(e: EditingEvent) => mixed,
|
||||||
onSelectionChange?: ?(e: SelectionChangeEvent) => void,
|
onSelectionChange?: ?(e: SelectionChangeEvent) => mixed,
|
||||||
onSubmitEditing?: ?(e: EditingEvent) => void,
|
onSubmitEditing?: ?(e: EditingEvent) => mixed,
|
||||||
onKeyPress?: ?(e: KeyPressEvent) => void,
|
onKeyPress?: ?(e: KeyPressEvent) => mixed,
|
||||||
onScroll?: ?(e: ScrollEvent) => void,
|
onScroll?: ?(e: ScrollEvent) => mixed,
|
||||||
placeholder?: ?Stringish,
|
placeholder?: ?Stringish,
|
||||||
placeholderTextColor?: ?ColorValue,
|
placeholderTextColor?: ?ColorValue,
|
||||||
secureTextEntry?: ?boolean,
|
secureTextEntry?: ?boolean,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user