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

fix: better interpolation for iOS modal #255

Merged
merged 1 commit into from
Oct 8, 2019
Merged
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
fix: better interpolation for iOS modal
osdnk committed Oct 8, 2019
commit c5bc78b80dc8e4495f45bcdf501dd0999c5daa80
4 changes: 2 additions & 2 deletions src/TransitionConfigs/CardStyleInterpolators.tsx
Original file line number Diff line number Diff line change
@@ -98,8 +98,8 @@ export function forModalPresentationIOS({
});

const overlayOpacity = interpolate(progress, {
inputRange: [0, 1, 2],
outputRange: [0, 0.3, 1],
inputRange: [0, 1, 1.0001, 2],
outputRange: [0, 0.3, 1, 1],
});

const scale = interpolate(progress, {