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