File tree 5 files changed +9
-9
lines changed
Libraries/Components/Touchable
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ import Pressability from '../../Pressability/Pressability.js';
14
14
import { PressabilityDebugView } from '../../Pressability/PressabilityDebug.js' ;
15
15
import type { ViewStyleProp } from '../../StyleSheet/StyleSheet.js' ;
16
16
import TVTouchable from './TVTouchable.js' ;
17
- import type { Props as TouchableWithoutFeedbackProps } from './TouchableWithoutFeedback.js' ;
17
+ import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js' ;
18
18
import { Animated , Platform } from 'react-native' ;
19
19
import * as React from 'react' ;
20
20
21
21
type Props = $ReadOnly < { |
22
- ...TouchableWithoutFeedbackProps ,
22
+ ...React . ElementConfig < TouchableWithoutFeedback > ,
23
23
24
24
onPressAnimationComplete ?: ?( ) => void ,
25
25
onPressWithCompletion ?: ?( callback : ( ) => void ) => void ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';
15
15
import type { ViewStyleProp } from '../../StyleSheet/StyleSheet.js' ;
16
16
import type { ColorValue } from '../../StyleSheet/StyleSheetTypes.js' ;
17
17
import TVTouchable from './TVTouchable.js' ;
18
- import type { Props as TouchableWithoutFeedbackProps } from './TouchableWithoutFeedback.js' ;
18
+ import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js' ;
19
19
import { Platform , StyleSheet , View } from 'react-native' ;
20
20
import * as React from 'react' ;
21
21
@@ -32,7 +32,7 @@ type IOSProps = $ReadOnly<{|
32
32
| } > ;
33
33
34
34
type Props = $ReadOnly < { |
35
- ...TouchableWithoutFeedbackProps ,
35
+ ...React . ElementConfig < TouchableWithoutFeedback > ,
36
36
...AndroidProps ,
37
37
...IOSProps ,
38
38
Original file line number Diff line number Diff line change 13
13
import Pressability from '../../Pressability/Pressability.js' ;
14
14
import { PressabilityDebugView } from '../../Pressability/PressabilityDebug.js' ;
15
15
import TVTouchable from './TVTouchable.js' ;
16
- import type { Props as TouchableWithoutFeedbackProps } from './TouchableWithoutFeedback.js' ;
16
+ import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js' ;
17
17
import { Commands } from 'react-native/Libraries/Components/View/ViewNativeComponent' ;
18
18
import ReactNative from 'react-native/Libraries/Renderer/shims/ReactNative' ;
19
19
import type { PressEvent } from 'react-native/Libraries/Types/CoreEventTypes' ;
20
20
import { Platform , View , processColor } from 'react-native' ;
21
21
import * as React from 'react' ;
22
22
23
23
type Props = $ReadOnly < { |
24
- ...TouchableWithoutFeedbackProps ,
24
+ ...React . ElementConfig < TouchableWithoutFeedback > ,
25
25
26
26
/**
27
27
* Determines the type of background drawable that's going to be used to
Original file line number Diff line number Diff line change 13
13
import Pressability from '../../Pressability/Pressability.js' ;
14
14
import { PressabilityDebugView } from '../../Pressability/PressabilityDebug.js' ;
15
15
import TVTouchable from './TVTouchable.js' ;
16
- import type { Props as TouchableWithoutFeedbackProps } from './TouchableWithoutFeedback.js' ;
16
+ import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js' ;
17
17
import Animated from 'react-native/Libraries/Animated/src/Animated' ;
18
18
import Easing from 'react-native/Libraries/Animated/src/Easing' ;
19
19
import type { ViewStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet' ;
@@ -31,7 +31,7 @@ type TVProps = $ReadOnly<{|
31
31
| } > ;
32
32
33
33
type Props = $ReadOnly < { |
34
- ...TouchableWithoutFeedbackProps ,
34
+ ...React . ElementConfig < TouchableWithoutFeedback > ,
35
35
...TVProps ,
36
36
37
37
activeOpacity ?: ?number ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import type {
30
30
import { Platform , View } from 'react-native' ;
31
31
import * as React from 'react' ;
32
32
33
- export type Props = $ReadOnly < { |
33
+ type Props = $ReadOnly < { |
34
34
accessibilityActions ?: ?$ReadOnlyArray < AccessibilityActionInfo > ,
35
35
accessibilityElementsHidden ?: ?boolean ,
36
36
accessibilityHint ?: ?Stringish ,
You can’t perform that action at this time.
0 commit comments