Skip to content

Commit fcb543a

Browse files
CRNS-43: Disabling longpress on image in image viewer
1 parent 749c6aa commit fcb543a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@
22

33
## [0.5.0] 2019-12-23
44

5-
#### stream-chat-expo
5+
#### stream-chat-expo (Expo package)
66

77
- Changes to add compatibility for Expo 36. Adding [netinfo](https://github.com/react-native-community/react-native-netinfo) as peer dependency - https://github.com/GetStream/stream-chat-react-native/issues/97
8+
- Disabling the longpress on image viewer (in Attachment) - https://github.com/GetStream/stream-chat-react-native/issues/100 to avoid freezing of UI.
89

9-
#### stream-chat-react-native
10+
#### stream-chat-react-native (Native package)
1011

11-
- no change
12-
13-
#### stream-chat-react-native-core
14-
15-
- no change
12+
- Disabling the longpress on image viewer (in Attachment) - https://github.com/GetStream/stream-chat-react-native/issues/100 to avoid freezing of UI.
1613

1714
## [0.4.0] 2019-12-16
1815

src/components/Gallery.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ export const Gallery = withMessageContentContext(
115115
>
116116
<ImageViewer
117117
imageUrls={images}
118+
// TODO: We don't have 'save image' functionality.
119+
// Until we do, lets disable this feature. saveToLocalByLongPress prop basically
120+
// opens up popup menu to with an option "Save to the album", which basically does nothing.
121+
saveToLocalByLongPress={false}
118122
onCancel={() => {
119123
this.setState({ viewerModalOpen: false });
120124
}}

0 commit comments

Comments
 (0)