mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook Github Bot
parent
a516167526
commit
7bcae81299
@@ -14,12 +14,12 @@ import Pressability from '../../Pressability/Pressability.js';
|
||||
import {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';
|
||||
import type {ViewStyleProp} from '../../StyleSheet/StyleSheet.js';
|
||||
import TVTouchable from './TVTouchable.js';
|
||||
import type {Props as TouchableWithoutFeedbackProps} from './TouchableWithoutFeedback.js';
|
||||
import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';
|
||||
import {Animated, Platform} from 'react-native';
|
||||
import * as React from 'react';
|
||||
|
||||
type Props = $ReadOnly<{|
|
||||
...TouchableWithoutFeedbackProps,
|
||||
...React.ElementConfig<TouchableWithoutFeedback>,
|
||||
|
||||
onPressAnimationComplete?: ?() => void,
|
||||
onPressWithCompletion?: ?(callback: () => void) => void,
|
||||
|
||||
@@ -15,7 +15,7 @@ import {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';
|
||||
import type {ViewStyleProp} from '../../StyleSheet/StyleSheet.js';
|
||||
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes.js';
|
||||
import TVTouchable from './TVTouchable.js';
|
||||
import type {Props as TouchableWithoutFeedbackProps} from './TouchableWithoutFeedback.js';
|
||||
import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';
|
||||
import {Platform, StyleSheet, View} from 'react-native';
|
||||
import * as React from 'react';
|
||||
|
||||
@@ -32,7 +32,7 @@ type IOSProps = $ReadOnly<{|
|
||||
|}>;
|
||||
|
||||
type Props = $ReadOnly<{|
|
||||
...TouchableWithoutFeedbackProps,
|
||||
...React.ElementConfig<TouchableWithoutFeedback>,
|
||||
...AndroidProps,
|
||||
...IOSProps,
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
import Pressability from '../../Pressability/Pressability.js';
|
||||
import {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';
|
||||
import TVTouchable from './TVTouchable.js';
|
||||
import type {Props as TouchableWithoutFeedbackProps} from './TouchableWithoutFeedback.js';
|
||||
import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';
|
||||
import {Commands} from 'react-native/Libraries/Components/View/ViewNativeComponent';
|
||||
import ReactNative from 'react-native/Libraries/Renderer/shims/ReactNative';
|
||||
import type {PressEvent} from 'react-native/Libraries/Types/CoreEventTypes';
|
||||
@@ -21,7 +21,7 @@ import {Platform, View, processColor} from 'react-native';
|
||||
import * as React from 'react';
|
||||
|
||||
type Props = $ReadOnly<{|
|
||||
...TouchableWithoutFeedbackProps,
|
||||
...React.ElementConfig<TouchableWithoutFeedback>,
|
||||
|
||||
/**
|
||||
* Determines the type of background drawable that's going to be used to
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
import Pressability from '../../Pressability/Pressability.js';
|
||||
import {PressabilityDebugView} from '../../Pressability/PressabilityDebug.js';
|
||||
import TVTouchable from './TVTouchable.js';
|
||||
import type {Props as TouchableWithoutFeedbackProps} from './TouchableWithoutFeedback.js';
|
||||
import typeof TouchableWithoutFeedback from './TouchableWithoutFeedback.js';
|
||||
import Animated from 'react-native/Libraries/Animated/src/Animated';
|
||||
import Easing from 'react-native/Libraries/Animated/src/Easing';
|
||||
import type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';
|
||||
@@ -31,7 +31,7 @@ type TVProps = $ReadOnly<{|
|
||||
|}>;
|
||||
|
||||
type Props = $ReadOnly<{|
|
||||
...TouchableWithoutFeedbackProps,
|
||||
...React.ElementConfig<TouchableWithoutFeedback>,
|
||||
...TVProps,
|
||||
|
||||
activeOpacity?: ?number,
|
||||
|
||||
@@ -30,7 +30,7 @@ import type {
|
||||
import {Platform, View} from 'react-native';
|
||||
import * as React from 'react';
|
||||
|
||||
export type Props = $ReadOnly<{|
|
||||
type Props = $ReadOnly<{|
|
||||
accessibilityActions?: ?$ReadOnlyArray<AccessibilityActionInfo>,
|
||||
accessibilityElementsHidden?: ?boolean,
|
||||
accessibilityHint?: ?Stringish,
|
||||
|
||||
Reference in New Issue
Block a user