remove useless memo and export thumb size

This commit is contained in:
Gleidson Daniel 2022-09-20 20:07:12 -03:00
parent 3e769f8220
commit 3bcbbffa8e
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import { allowPreview } from './utils';
import { TSupportedThemes } from '../../theme';
import { IShareAttachment } from '../../definitions';
const THUMB_SIZE = 64;
export const THUMB_SIZE = 64;
const styles = StyleSheet.create({
list: {
@ -136,7 +136,7 @@ const Thumb = ({ item, theme, isShareExtension, onPress, onRemove }: IThumb) =>
</ThumbButton>
);
const Thumbs = React.memo(({ attachments, theme, isShareExtension, onPress, onRemove }: IThumbs) => {
const Thumbs = ({ attachments, theme, isShareExtension, onPress, onRemove }: IThumbs) => {
if (attachments?.length > 1) {
return (
<FlatList
@ -157,6 +157,6 @@ const Thumbs = React.memo(({ attachments, theme, isShareExtension, onPress, onRe
);
}
return null;
});
};
export default Thumbs;