Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3532523
D10007.id33651.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10007.id33651.diff
View Options
diff --git a/native/components/swipeable.js b/native/components/swipeable.js
--- a/native/components/swipeable.js
+++ b/native/components/swipeable.js
@@ -8,6 +8,7 @@
import Button from './button.react.js';
import { useSelector } from '../redux/redux-utils.js';
import { useStyles } from '../themes/colors.js';
+import type { AnimatedInterpolation } from '../types/react-native.js';
type Props = {
+buttonWidth: number,
@@ -37,7 +38,7 @@
} = props;
const renderRightActions = React.useCallback(
- progress => {
+ (progress: AnimatedInterpolation<number>) => {
const actions = rightActions.map(
({ key, content, color, onPress }, i) => {
const translation = progress.interpolate({
diff --git a/native/types/react-native.js b/native/types/react-native.js
--- a/native/types/react-native.js
+++ b/native/types/react-native.js
@@ -1,5 +1,6 @@
// @flow
+import AnimatedInterpolation from 'react-native/Libraries/Animated/nodes/AnimatedInterpolation.js';
import type ReactNativeAnimatedValue from 'react-native/Libraries/Animated/nodes/AnimatedValue.js';
import type { ViewToken } from 'react-native/Libraries/Lists/ViewabilityHelper.js';
@@ -40,3 +41,5 @@
+width: number,
+threadID: string,
};
+
+export type { AnimatedInterpolation };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 9:21 AM (11 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703207
Default Alt Text
D10007.id33651.diff (1 KB)
Attached To
Mode
D10007: [Flow202][native][skip-ci] [23/x] Import AnimatedInterpolation type from react-native
Attached
Detach File
Event Timeline
Log In to Comment