File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff 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 ) =>
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments