2020-06-15 19:35:45 +00:00
|
|
|
diff --git a/node_modules/react-native-scroll-bottom-sheet/src/index.tsx b/node_modules/react-native-scroll-bottom-sheet/src/index.tsx
|
2020-07-20 16:35:17 +00:00
|
|
|
index c4dbcce..b545c03 100644
|
2020-06-15 19:35:45 +00:00
|
|
|
--- a/node_modules/react-native-scroll-bottom-sheet/src/index.tsx
|
|
|
|
+++ b/node_modules/react-native-scroll-bottom-sheet/src/index.tsx
|
|
|
|
@@ -518,6 +518,28 @@ export class ScrollBottomSheet<T extends any> extends Component<Props<T>> {
|
|
|
|
clockRunning(this.animationClock)
|
|
|
|
),
|
|
|
|
[
|
|
|
|
+ this.didScrollUpAndPullDown,
|
|
|
|
+ this.setTranslationY,
|
|
|
|
+ set(this.tempDestSnapPoint, add(snapPoints[0], this.extraOffset)),
|
|
|
|
+ cond(not(this.isManuallySetValue), set(this.nextSnapIndex, 0)),
|
|
|
|
+ set(
|
|
|
|
+ this.destSnapPoint,
|
|
|
|
+ cond(
|
|
|
|
+ this.isManuallySetValue,
|
|
|
|
+ this.manualYOffset,
|
|
|
|
+ this.calculateNextSnapPoint()
|
|
|
|
+ )
|
|
|
|
+ ),
|
|
|
|
+ cond(this.isManuallySetValue, [
|
|
|
|
+ set(this.animationFinished, 0)
|
|
|
|
+ ]),
|
|
|
|
+ set(
|
|
|
|
+ this.lastSnap,
|
|
|
|
+ sub(
|
|
|
|
+ this.destSnapPoint,
|
|
|
|
+ cond(eq(this.scrollUpAndPullDown, 1), this.lastStartScrollY, 0)
|
|
|
|
+ )
|
|
|
|
+ ),
|
|
|
|
runTiming({
|
|
|
|
clock: this.animationClock,
|
|
|
|
from: cond(
|
|
|
|
@@ -550,7 +572,7 @@ export class ScrollBottomSheet<T extends any> extends Component<Props<T>> {
|
|
|
|
);
|
|
|
|
|
|
|
|
this.position = interpolate(this.translateY, {
|
|
|
|
- inputRange: [openPosition, closedPosition],
|
|
|
|
+ inputRange: [snapPoints[snapPoints.length - 2], closedPosition],
|
|
|
|
outputRange: [1, 0],
|
|
|
|
extrapolate: Extrapolate.CLAMP,
|
|
|
|
});
|