diff --git a/native/chat/chat-input-bar.react.js b/native/chat/chat-input-bar.react.js --- a/native/chat/chat-input-bar.react.js +++ b/native/chat/chat-input-bar.react.js @@ -133,7 +133,7 @@ } from '../navigation/route-names.js'; import { useSelector } from '../redux/redux-utils.js'; import { type Colors, useStyles, useColors } from '../themes/colors.js'; -import type { LayoutEvent } from '../types/react-native.js'; +import type { LayoutEvent, ImagePasteEvent } from '../types/react-native.js'; import { type AnimatedViewStyle, AnimatedView } from '../types/styles.js'; import Alert from '../utils/alert.js'; import { runTiming } from '../utils/animation-utils.js'; @@ -1372,7 +1372,7 @@ const { threadInfo } = props; const imagePastedCallback = React.useCallback( - imagePastedEvent => { + (imagePastedEvent: ImagePasteEvent) => { if (threadInfo.id !== imagePastedEvent.threadID) { return; } 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 @@ -32,3 +32,11 @@ }; export type EmitterSubscription = { +remove: () => void, ... }; + +export type ImagePasteEvent = { + +fileName: string, + +filePath: string, + +height: number, + +width: number, + +threadID: string, +};