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.
@@ -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
- // Only send onboarding state to the ACTIVE screen (index 0 on initial load)
1654
- if (i === activeScreenIndexRef.current) {
1655
- sendOnboardingStateToWebView(i);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rampkit-expo-dev",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
4
4
  "description": "The Expo SDK for RampKit. Build, test, and personalize app onboardings with instant updates.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",