Skip to content

Commit

Permalink
adjust animation
Browse files Browse the repository at this point in the history
  • Loading branch information
gkasdorf committed Jun 27, 2023
1 parent bb8ccff commit 0e1d482
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/ui/image/ImageModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React, { useMemo } from "react";
import { Share, useWindowDimensions } from "react-native";
import { Modal, useToast, View } from "native-base";
import Animated, {
FadeIn,
FadeOut,
runOnJS,
useAnimatedStyle,
useSharedValue,
Expand Down Expand Up @@ -349,8 +351,8 @@ function ImageModal({
<AnimatedModal
isOpen={isOpen}
onClose={onRequestClose}
entering={ZoomIn.duration(200)}
exiting={ZoomOut.duration(200)}
entering={FadeIn.duration(200)}
exiting={FadeOut.duration(200)}
>
{image}
<View position="absolute" bottom={0} width="100%">
Expand Down

0 comments on commit 0e1d482

Please sign in to comment.