mirror of
				https://github.com/tooot-app/app
				synced 2025-06-05 22:19:13 +02:00 
			
		
		
		
	Fix blurhash image miss align
This commit is contained in:
		| @@ -2,7 +2,7 @@ import analytics from '@components/analytics' | |||||||
| import GracefullyImage from '@components/GracefullyImage' | import GracefullyImage from '@components/GracefullyImage' | ||||||
| import { StyleConstants } from '@utils/styles/constants' | import { StyleConstants } from '@utils/styles/constants' | ||||||
| import React, { useCallback } from 'react' | import React, { useCallback } from 'react' | ||||||
| import { StyleSheet } from 'react-native' | import { StyleSheet, View } from 'react-native' | ||||||
| import attachmentAspectRatio from './aspectRatio' | import attachmentAspectRatio from './aspectRatio' | ||||||
|  |  | ||||||
| export interface Props { | export interface Props { | ||||||
| @@ -21,16 +21,15 @@ const AttachmentImage = React.memo( | |||||||
|     }, []) |     }, []) | ||||||
|  |  | ||||||
|     return ( |     return ( | ||||||
|       <GracefullyImage |       <View style={styles.base}> | ||||||
|         hidden={sensitiveShown} |         <GracefullyImage | ||||||
|         uri={{ original: image.preview_url, remote: image.remote_url }} |           hidden={sensitiveShown} | ||||||
|         blurhash={image.blurhash} |           uri={{ original: image.preview_url, remote: image.remote_url }} | ||||||
|         onPress={onPress} |           blurhash={image.blurhash} | ||||||
|         style={[ |           onPress={onPress} | ||||||
|           styles.base, |           style={[{ aspectRatio: attachmentAspectRatio({ total, index }) }]} | ||||||
|           { aspectRatio: attachmentAspectRatio({ total, index }) } |         /> | ||||||
|         ]} |       </View> | ||||||
|       /> |  | ||||||
|     ) |     ) | ||||||
|   }, |   }, | ||||||
|   (prev, next) => prev.sensitiveShown === next.sensitiveShown |   (prev, next) => prev.sensitiveShown === next.sensitiveShown | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user