Page MenuHomePhabricator

D10006.diff
No OneTemporary

D10006.diff

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,
+};

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 8:55 PM (6 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2720148
Default Alt Text
D10006.diff (1 KB)

Event Timeline