We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e96ae66 commit 912a9deCopy full SHA for 912a9de
src/components/Modal/ReanimatedModal/utils.ts
@@ -37,8 +37,10 @@ function getModalInAnimation(animationType: AnimationInType): ValidKeyframeProps
37
}
38
39
40
+/**
41
+ * @returns A function that takes a number between 0 and 1 and returns a ViewStyle object.
42
+ */
43
function getModalInAnimationStyle(animationType: AnimationInType): (progress: number) => ViewStyle {
- // 'progress' in range [0, 1]
44
switch (animationType) {
45
case 'slideInRight':
46
return (progress) => ({transform: [{translateX: `${100 * (1 - progress)}%`}]});
0 commit comments