Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function CategorySelectorModal({policyID, isVisible, currentCategory, onCategory
hideModalContentWhileAnimating
useNativeDriver
enableEdgeToEdgeBottomSafeAreaPadding
shouldUseReanimatedModal
>
<ScreenWrapper
style={[styles.pb0]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import React, {useEffect, useMemo, useRef} from 'react';
import Animated, {Easing, Keyframe, useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated';
import Animated, {Keyframe, useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated';
import type ReanimatedModalProps from '@components/Modal/ReanimatedModal/types';
import type {ContainerProps} from '@components/Modal/ReanimatedModal/types';
import {getModalInAnimationStyle, getModalOutAnimation} from '@components/Modal/ReanimatedModal/utils';
import {easing, getModalInAnimationStyle, getModalOutAnimation} from '@components/Modal/ReanimatedModal/utils';
import useThemeStyles from '@hooks/useThemeStyles';
import CONST from '@src/CONST';

const easing = Easing.bezier(0.76, 0.0, 0.24, 1.0).factory();

function Container({
style,
animationIn,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/ReanimatedModal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ function getModalOutAnimation(animationType: AnimationOutType): ValidKeyframePro
}
}

export {getModalInAnimation, getModalOutAnimation, getModalInAnimationStyle};
export {getModalInAnimation, getModalOutAnimation, getModalInAnimationStyle, easing};
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function WorkspaceMemberDetailsRoleSelectionModal({isVisible, items, onRoleChang
hideModalContentWhileAnimating
useNativeDriver
enableEdgeToEdgeBottomSafeAreaPadding
shouldUseReanimatedModal
>
<ScreenWrapper
testID={WorkspaceMemberDetailsRoleSelectionModal.displayName}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function ExpenseLimitTypeSelectorModal({isVisible, currentExpenseLimitType, onEx
hideModalContentWhileAnimating
useNativeDriver
enableEdgeToEdgeBottomSafeAreaPadding
shouldUseReanimatedModal
>
<ScreenWrapper
style={[styles.pb0]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function UnitSelectorModal({isVisible, currentUnit, onUnitSelected, onClose, lab
onModalHide={onClose}
hideModalContentWhileAnimating
useNativeDriver
shouldUseReanimatedModal
>
<ScreenWrapper
style={[styles.pb0]}
Expand Down
Loading