@delacour/react-native-bottom-sheet 0.3.0-alpha.20261025150533 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -107,8 +107,7 @@ export function useSheetKeyboard({
|
|
|
107
107
|
if (state.keyboardHeight.value !== keyboardHeight) state.keyboardHeight.value = keyboardHeight;
|
|
108
108
|
if (state.keyboardProgress.value !== current.progress) state.keyboardProgress.value = current.progress;
|
|
109
109
|
if (state.keyboardOwned.value !== owned) state.keyboardOwned.value = owned;
|
|
110
|
-
}
|
|
111
|
-
[state, geometry, height, progress, input, focused, windowHeight]
|
|
110
|
+
}
|
|
112
111
|
);
|
|
113
112
|
|
|
114
113
|
useAnimatedReaction(
|
|
@@ -155,8 +154,7 @@ export function useSheetKeyboard({
|
|
|
155
154
|
if (snapPoints.length === 0) return;
|
|
156
155
|
const target = heightForIndex(Math.min(index, snapPoints.length - 1), snapPoints, closed);
|
|
157
156
|
if (Math.abs(target - state.base.value) > 0.5) animateTo(target, "keyboard", 0);
|
|
158
|
-
}
|
|
159
|
-
[state, geometry, animateTo, progress, applied, indexBefore]
|
|
157
|
+
}
|
|
160
158
|
);
|
|
161
159
|
|
|
162
160
|
return useMemo<SheetKeyboardRegistry>(() => ({ nodes, focused }), [focused]);
|
|
@@ -112,8 +112,7 @@ export function useSheetIntents(
|
|
|
112
112
|
const jump = resolution.action === "jump" || (mounting && !state.config.value.animateOnMount);
|
|
113
113
|
if (jump) jumpTo(resolution.target, source);
|
|
114
114
|
else animateTo(resolution.target, source, 0);
|
|
115
|
-
}
|
|
116
|
-
[state, geometry, animateTo, jumpTo]
|
|
115
|
+
}
|
|
117
116
|
);
|
|
118
117
|
|
|
119
118
|
useAnimatedReaction(
|
|
@@ -139,8 +138,7 @@ export function useSheetIntents(
|
|
|
139
138
|
return;
|
|
140
139
|
}
|
|
141
140
|
animateTo(target, "snapPoints", 0);
|
|
142
|
-
}
|
|
143
|
-
[state, geometry, animateTo, jumpTo]
|
|
141
|
+
}
|
|
144
142
|
);
|
|
145
143
|
|
|
146
144
|
return useMemo<SheetIntents>(() => ({ dispatch, clear, lastKind }), [dispatch, clear, lastKind]);
|