diff --git a/native/chat/image-paste-modal.react.js b/native/chat/image-paste-modal.react.js
--- a/native/chat/image-paste-modal.react.js
+++ b/native/chat/image-paste-modal.react.js
@@ -21,6 +21,8 @@
+thread: ThreadInfo | MinimallyEncodedThreadInfo,
};
+const safeAreaEdges = ['top'];
+
type Props = {
+navigation: RootNavigationProp<'ImagePasteModal'>,
+route: NavigationRoute<'ImagePasteModal'>,
@@ -51,18 +53,40 @@
filesystem.unlink(imagePasteStagingInfo.uri);
}, [imagePasteStagingInfo.uri, navigation]);
- return (
-
-
-
-
-
-
-
-
-
-
+ const imageSource = React.useMemo(
+ () => ({ uri: imagePasteStagingInfo.uri }),
+ [imagePasteStagingInfo.uri],
+ );
+
+ const imagePasteModal = React.useMemo(
+ () => (
+
+
+
+
+
+
+
+
+
+
+ ),
+ [
+ cancel,
+ imageSource,
+ sendButtonDisabled,
+ sendImage,
+ styles.image,
+ styles.linebreak,
+ styles.modal,
+ styles.spacer,
+ ],
);
+ return imagePasteModal;
}
const unboundStyles = {