Skip to content

Commit d8d621d

Browse files
Merge pull request #1440 from GetStream/khushal87-fix-video-issues
fix: issues with video upload in expo from attachment picker and component displayname
2 parents 06041c7 + 641c78b commit d8d621d

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

package/src/components/AttachmentPicker/AttachmentPicker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ const AttachmentVideo: React.FC<AttachmentVideoProps> = (props) => {
110110
const size = vw(100) / (numberOfAttachmentPickerImageColumns || 3) - 2;
111111

112112
const onPressVideo = async () => {
113+
// For the case of expo messaging app where you need to fetch the asset uri from asset id
113114
const localAssetURI = asset.id && (await getLocalAssetUri(asset.id));
114115
if (selected) {
115116
setSelectedFiles((files) => files.filter((file) => file.uri !== asset.uri));

package/src/components/ImageGallery/ImageGallery.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ export const ImageGallery = <
257257
*/
258258

259259
const photos = images.reduce((acc: Photo<StreamChatGenerics>[], cur) => {
260-
console.log(cur);
261260
const attachmentImages =
262261
cur.attachments?.filter(
263262
(attachment) =>

package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const AnimatedGalleryVideo: React.FC<Props> = React.memo(
183183
onPlaybackStatusUpdate={onPlayBackStatusUpdate}
184184
onProgress={onProgress}
185185
paused={paused}
186-
resizeMode='cover'
186+
resizeMode='contain'
187187
style={style}
188188
uri={source.uri}
189189
videoRef={videoRef}

0 commit comments

Comments
 (0)