Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 0f715c1

Browse files
authored
fix: better interpolation for iOS modal (#255)
1 parent 4903d32 commit 0f715c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TransitionConfigs/CardStyleInterpolators.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export function forModalPresentationIOS({
9898
});
9999

100100
const overlayOpacity = interpolate(progress, {
101-
inputRange: [0, 1, 2],
102-
outputRange: [0, 0.3, 1],
101+
inputRange: [0, 1, 1.0001, 2],
102+
outputRange: [0, 0.3, 1, 1],
103103
});
104104

105105
const scale = interpolate(progress, {

0 commit comments

Comments
 (0)