rampkit-expo-dev 0.0.17 → 0.0.18
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/build/RampkitOverlay.js +4 -4
- package/package.json +1 -1
package/build/RampkitOverlay.js
CHANGED
|
@@ -477,10 +477,10 @@ function Overlay(props) {
|
|
|
477
477
|
console.log("[Rampkit] onPageSelected", pos);
|
|
478
478
|
sendVarsToWebView(pos);
|
|
479
479
|
};
|
|
480
|
-
const handleAdvance = (i) => {
|
|
480
|
+
const handleAdvance = (i, animation = "fade") => {
|
|
481
481
|
const last = props.screens.length - 1;
|
|
482
482
|
if (i < last) {
|
|
483
|
-
navigateToIndex(i + 1);
|
|
483
|
+
navigateToIndex(i + 1, animation);
|
|
484
484
|
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light).catch(() => { });
|
|
485
485
|
}
|
|
486
486
|
else {
|
|
@@ -682,7 +682,7 @@ function Overlay(props) {
|
|
|
682
682
|
}
|
|
683
683
|
if ((data === null || data === void 0 ? void 0 : data.type) === "rampkit:continue" ||
|
|
684
684
|
(data === null || data === void 0 ? void 0 : data.type) === "continue") {
|
|
685
|
-
handleAdvance(i);
|
|
685
|
+
handleAdvance(i, (data === null || data === void 0 ? void 0 : data.animation) || "fade");
|
|
686
686
|
return;
|
|
687
687
|
}
|
|
688
688
|
if ((data === null || data === void 0 ? void 0 : data.type) === "rampkit:navigate") {
|
|
@@ -697,7 +697,7 @@ function Overlay(props) {
|
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
699
|
if (!target || target === "__continue__") {
|
|
700
|
-
handleAdvance(i);
|
|
700
|
+
handleAdvance(i, (data === null || data === void 0 ? void 0 : data.animation) || "fade");
|
|
701
701
|
return;
|
|
702
702
|
}
|
|
703
703
|
const targetIndex = props.screens.findIndex((s) => s.id === target);
|
package/package.json
CHANGED