remove useless memo and export thumb size
This commit is contained in:
parent
3e769f8220
commit
3bcbbffa8e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue