File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { getHostComponentNames } from './helpers/host-component-names';
7
7
8
8
type EventHandler = ( ...args : any ) => unknown ;
9
9
10
- function isTextInput ( element ? : ReactTestInstance ) {
10
+ function isTextInput ( element : ReactTestInstance ) {
11
11
if ( ! element ) {
12
12
return false ;
13
13
}
@@ -22,10 +22,12 @@ function isTextInput(element?: ReactTestInstance) {
22
22
) ;
23
23
}
24
24
25
- function isTouchResponder ( element ?: ReactTestInstance ) {
26
- if ( ! isHostElement ( element ) ) return false ;
25
+ function isTouchResponder ( element : ReactTestInstance ) {
26
+ if ( ! isHostElement ( element ) ) {
27
+ return false ;
28
+ }
27
29
28
- return ! ! element ? .props . onStartShouldSetResponder || isTextInput ( element ) ;
30
+ return ! ! element . props . onStartShouldSetResponder || isTextInput ( element ) ;
29
31
}
30
32
31
33
function isPointerEventEnabled (
You can’t perform that action at this time.
0 commit comments