Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33532906
D10006.1769077476.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D10006.1769077476.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 22, 10:24 AM (12 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5976364
Default Alt Text
D10006.1769077476.diff (1 KB)
Attached To
Mode
D10006: [Flow202][native][skip-ci] [22/x] Define ImagePasteEvent type
Attached
Detach File
Event Timeline
Log In to Comment