rampkit-expo-dev 0.0.75 → 0.0.76
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 +8 -4
- package/package.json +1 -1
package/build/RampkitOverlay.js
CHANGED
|
@@ -1650,10 +1650,14 @@ function Overlay(props) {
|
|
|
1650
1650
|
if (__DEV__)
|
|
1651
1651
|
console.log("[Rampkit] onLoadEnd initializing screen", i);
|
|
1652
1652
|
sendVarsToWebView(i, true);
|
|
1653
|
-
//
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1653
|
+
// Send onboarding state to ALL screens during initial load (matching iOS SDK behavior).
|
|
1654
|
+
// This prevents a visual glitch where content shifts on first navigation to each screen.
|
|
1655
|
+
// Previously, we only sent state to the active screen (screen 0), which meant screens 1, 2, etc.
|
|
1656
|
+
// received their onboarding state for the first time during navigation - causing DOM updates
|
|
1657
|
+
// and layout shifts visible during the transition animation.
|
|
1658
|
+
// By sending state to all screens upfront, the DOM is already in its final state
|
|
1659
|
+
// before any navigation occurs.
|
|
1660
|
+
sendOnboardingStateToWebView(i);
|
|
1657
1661
|
}, onMessage: (ev) => {
|
|
1658
1662
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1659
1663
|
const raw = ev.nativeEvent.data;
|
package/package.json
CHANGED