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.
- package/build/RampkitOverlay.js +12 -15
- package/package.json +1 -1
package/build/RampkitOverlay.js
CHANGED
|
@@ -158,16 +158,10 @@ function hideRampkitOverlay() {
|
|
|
158
158
|
activeCloseHandler = null;
|
|
159
159
|
}
|
|
160
160
|
function closeRampkitOverlay() {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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.
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
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