rampkit-expo-dev 0.0.13 → 0.0.14

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.
@@ -158,16 +158,10 @@ function hideRampkitOverlay() {
158
158
  activeCloseHandler = null;
159
159
  }
160
160
  function closeRampkitOverlay() {
161
- // Try to drive the same animated close path as in the onboarding-finished event
162
- try {
163
- if (activeCloseHandler) {
164
- activeCloseHandler();
165
- }
161
+ if (activeCloseHandler) {
162
+ activeCloseHandler();
163
+ return;
166
164
  }
167
- catch (_) {
168
- // fall through to hard hide
169
- }
170
- // Always fall back to a hard hide so the overlay is guaranteed to disappear
171
165
  hideRampkitOverlay();
172
166
  }
173
167
  function preloadRampkitOverlay(opts) {
@@ -279,12 +273,15 @@ function Overlay(props) {
279
273
  if (isClosing)
280
274
  return;
281
275
  setIsClosing(true);
282
- react_native_1.Animated.timing(overlayOpacity, {
283
- toValue: 0,
284
- duration: 220,
285
- easing: react_native_1.Easing.out(react_native_1.Easing.cubic),
286
- useNativeDriver: true,
287
- }).start(() => {
276
+ react_native_1.Animated.sequence([
277
+ react_native_1.Animated.delay(150),
278
+ react_native_1.Animated.timing(overlayOpacity, {
279
+ toValue: 0,
280
+ duration: 320,
281
+ easing: react_native_1.Easing.out(react_native_1.Easing.cubic),
282
+ useNativeDriver: true,
283
+ }),
284
+ ]).start(() => {
288
285
  props.onRequestClose();
289
286
  });
290
287
  }, [isClosing, overlayOpacity, props.onRequestClose]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rampkit-expo-dev",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
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",