Skip to content

Commit 7bcae81

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: Stop Exporting TouchableWithoutFeedback Props
Summary: Changes `TouchableWithoutFeedback` so that `Props` is no longer exported as a Flow type. Instead, other modules should use `React.ElementConfig<typeof TouchableWithoutFeedback>`. Changelog: [General] [Removed] - TouchableWithoutFeedback no longer exports Props. Use React.ElementConfig, instead. Reviewed By: zackargyle, TheSavior Differential Revision: D18718131 fbshipit-source-id: 0bd63123c49564fdab160d5fc8e7f1bf86da1fbe
1 parent a516167 commit 7bcae81

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Libraries/Components/Touchable/TouchableBounce.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ import Pressability from '../../Pressability/Pressability.js';
1414
import {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';
1515
import type {ViewStyleProp} from '../../StyleSheet/StyleSheet.js';
1616
import TVTouchable from './TVTouchable.js';
17-
import type {Props as TouchableWithoutFeedbackProps} from './TouchableWithoutFeedback.js';
17+
import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';
1818
import {Animated, Platform} from 'react-native';
1919
import * as React from 'react';
2020

2121
type Props = $ReadOnly<{|
22-
...TouchableWithoutFeedbackProps,
22+
...React.ElementConfig<TouchableWithoutFeedback>,
2323

2424
onPressAnimationComplete?: ?() => void,
2525
onPressWithCompletion?: ?(callback: () => void) => void,

Libraries/Components/Touchable/TouchableHighlight.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';
1515
import type {ViewStyleProp} from '../../StyleSheet/StyleSheet.js';
1616
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes.js';
1717
import TVTouchable from './TVTouchable.js';
18-
import type {Props as TouchableWithoutFeedbackProps} from './TouchableWithoutFeedback.js';
18+
import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';
1919
import {Platform, StyleSheet, View} from 'react-native';
2020
import * as React from 'react';
2121

@@ -32,7 +32,7 @@ type IOSProps = $ReadOnly<{|
3232
|}>;
3333

3434
type Props = $ReadOnly<{|
35-
...TouchableWithoutFeedbackProps,
35+
...React.ElementConfig<TouchableWithoutFeedback>,
3636
...AndroidProps,
3737
...IOSProps,
3838

Libraries/Components/Touchable/TouchableNativeFeedback.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
import Pressability from '../../Pressability/Pressability.js';
1414
import {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';
1515
import TVTouchable from './TVTouchable.js';
16-
import type {Props as TouchableWithoutFeedbackProps} from './TouchableWithoutFeedback.js';
16+
import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';
1717
import {Commands} from 'react-native/Libraries/Components/View/ViewNativeComponent';
1818
import ReactNative from 'react-native/Libraries/Renderer/shims/ReactNative';
1919
import type {PressEvent} from 'react-native/Libraries/Types/CoreEventTypes';
2020
import {Platform, View, processColor} from 'react-native';
2121
import * as React from 'react';
2222

2323
type Props = $ReadOnly<{|
24-
...TouchableWithoutFeedbackProps,
24+
...React.ElementConfig<TouchableWithoutFeedback>,
2525

2626
/**
2727
* Determines the type of background drawable that's going to be used to

Libraries/Components/Touchable/TouchableOpacity.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import Pressability from '../../Pressability/Pressability.js';
1414
import {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';
1515
import TVTouchable from './TVTouchable.js';
16-
import type {Props as TouchableWithoutFeedbackProps} from './TouchableWithoutFeedback.js';
16+
import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';
1717
import Animated from 'react-native/Libraries/Animated/src/Animated';
1818
import Easing from 'react-native/Libraries/Animated/src/Easing';
1919
import type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';
@@ -31,7 +31,7 @@ type TVProps = $ReadOnly<{|
3131
|}>;
3232

3333
type Props = $ReadOnly<{|
34-
...TouchableWithoutFeedbackProps,
34+
...React.ElementConfig<TouchableWithoutFeedback>,
3535
...TVProps,
3636

3737
activeOpacity?: ?number,

Libraries/Components/Touchable/TouchableWithoutFeedback.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import type {
3030
import {Platform, View} from 'react-native';
3131
import * as React from 'react';
3232

33-
export type Props = $ReadOnly<{|
33+
type Props = $ReadOnly<{|
3434
accessibilityActions?: ?$ReadOnlyArray<AccessibilityActionInfo>,
3535
accessibilityElementsHidden?: ?boolean,
3636
accessibilityHint?: ?Stringish,

0 commit comments

Comments
 (0)