Skip to content

Commit 912a9de

Browse files
committed
Add jsdoc
1 parent e96ae66 commit 912a9de

File tree

1 file changed

+3
-1
lines changed
  • src/components/Modal/ReanimatedModal

1 file changed

+3
-1
lines changed

src/components/Modal/ReanimatedModal/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ function getModalInAnimation(animationType: AnimationInType): ValidKeyframeProps
3737
}
3838
}
3939

40+
/**
41+
* @returns A function that takes a number between 0 and 1 and returns a ViewStyle object.
42+
*/
4043
function getModalInAnimationStyle(animationType: AnimationInType): (progress: number) => ViewStyle {
41-
// 'progress' in range [0, 1]
4244
switch (animationType) {
4345
case 'slideInRight':
4446
return (progress) => ({transform: [{translateX: `${100 * (1 - progress)}%`}]});

0 commit comments

Comments
 (0)