Skip to content

Commit

Permalink
remove sharedTransitionTag
Browse files Browse the repository at this point in the history
  • Loading branch information
2002Bishwajeet committed Aug 8, 2024
1 parent 242b5c6 commit 833ee11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion packages/mobile/src/components/Chat/MediaMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ const InnerMediaItem = ({
}
onLongPress={onLongPress}
onClick={onClick}
sharedTransitionTag={`${msg.fileId}-${payload.key}`}
/>
</View>
);
Expand Down
14 changes: 2 additions & 12 deletions packages/mobile/src/components/ui/OdinImage/OdinImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export interface OdinImageProps {
onClick?: () => void;
onLongPress?: (e: GestureResponderEvent) => void;
imageZoomProps?: ImageZoomProps;
sharedTransitionTag?: string;
}

const thumblessContentTypes = ['image/svg+xml', 'image/gif'];
Expand All @@ -59,7 +58,6 @@ export const OdinImage = memo(
onClick,
onLongPress,
imageZoomProps,
sharedTransitionTag,
}: OdinImageProps) => {
// Don't set load size if it's a thumbnessLessContentType; As they don't have a thumb
const loadSize = useMemo(
Expand Down Expand Up @@ -199,7 +197,7 @@ export const OdinImage = memo(
imageMeta={imageMeta}
imageSize={imageSize}
blurRadius={hasCachedImage ? 0 : 2}
sharedTransitionTag={sharedTransitionTag}

// onLongPress={onLongPress}
/>
) : null}
Expand All @@ -218,7 +216,6 @@ export const OdinImage = memo(
style={zoomableStyle}
imageMeta={imageMeta}
imageZoomProps={imageZoomProps}
sharedTransitionTag={sharedTransitionTag}
/>
) : null}

Expand Down Expand Up @@ -252,7 +249,6 @@ const InnerImage = memo(
onLongPress,
contentType,
imageMeta,
sharedTransitionTag,
}: {
uri: string;
imageSize?: { width: number; height: number };
Expand All @@ -269,7 +265,7 @@ const InnerImage = memo(
imageDrive: TargetDrive;
size?: ImageSize;
};
sharedTransitionTag?: string;

contentType?: ImageContentType;
}) => {
const ClickableWrapper = useCallback(
Expand All @@ -288,7 +284,6 @@ const InnerImage = memo(
return contentType === 'image/svg+xml' ? (
<ClickableWrapper>
<Animated.View
sharedTransitionTag={sharedTransitionTag}
style={[
{
...imageSize,
Expand All @@ -309,7 +304,6 @@ const InnerImage = memo(
) : (
<ClickableWrapper>
<Animated.Image
sharedTransitionTag={sharedTransitionTag}
onError={() => {
if (imageMeta) {
return invalidateCache(
Expand Down Expand Up @@ -348,7 +342,6 @@ const ZoomableImage = memo(
contentType,
imageMeta,
imageZoomProps,
sharedTransitionTag,
}: {
uri: string;
imageSize?: { width: number; height: number };
Expand All @@ -366,7 +359,6 @@ const ZoomableImage = memo(
size?: ImageSize;
};
imageZoomProps?: ImageZoomProps;
sharedTransitionTag?: string;
contentType?: ImageContentType;
}) => {
if (!enableZoom) {
Expand All @@ -381,7 +373,6 @@ const ZoomableImage = memo(
onClick={onClick}
onLongPress={onLongPress}
imageMeta={imageMeta}
sharedTransitionTag={sharedTransitionTag}
/>
);
}
Expand All @@ -392,7 +383,6 @@ const ZoomableImage = memo(
style={{
...imageSize,
}}
sharedTransitionTag={sharedTransitionTag}
>
<ImageZoom
uri={uri}
Expand Down

0 comments on commit 833ee11

Please sign in to comment.