restore toast exit animation on android
This commit is contained in:
@@ -1,22 +1,20 @@
|
|||||||
diff --git a/node_modules/sonner-native/lib/commonjs/toast.js b/node_modules/sonner-native/lib/commonjs/toast.js
|
diff --git a/node_modules/sonner-native/lib/commonjs/toast.js b/node_modules/sonner-native/lib/commonjs/toast.js
|
||||||
index 121816a..0c3c7bd 100644
|
index 121816a..ed932f5 100644
|
||||||
--- a/node_modules/sonner-native/lib/commonjs/toast.js
|
--- a/node_modules/sonner-native/lib/commonjs/toast.js
|
||||||
+++ b/node_modules/sonner-native/lib/commonjs/toast.js
|
+++ b/node_modules/sonner-native/lib/commonjs/toast.js
|
||||||
@@ -264,7 +264,7 @@ const Toast = exports.Toast = /*#__PURE__*/React.forwardRef(({
|
@@ -265,6 +265,7 @@ const Toast = exports.Toast = /*#__PURE__*/React.forwardRef(({
|
||||||
...toastSwipeHandlerProps,
|
|
||||||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
||||||
entering: entering,
|
entering: entering,
|
||||||
- exiting: exiting,
|
exiting: exiting,
|
||||||
+ exiting: _reactNative.Platform.OS === 'android' ? undefined : exiting,
|
+ collapsible: false,
|
||||||
children: jsx
|
children: jsx
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
@@ -274,7 +274,7 @@ const Toast = exports.Toast = /*#__PURE__*/React.forwardRef(({
|
@@ -275,6 +276,7 @@ const Toast = exports.Toast = /*#__PURE__*/React.forwardRef(({
|
||||||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
||||||
style: [unstyled ? undefined : elevationStyle, defaultStyles.toast, toastStyleCtx, styles?.toast, style, wiggleAnimationStyle],
|
style: [unstyled ? undefined : elevationStyle, defaultStyles.toast, toastStyleCtx, styles?.toast, style, wiggleAnimationStyle],
|
||||||
entering: entering,
|
entering: entering,
|
||||||
- exiting: exiting,
|
exiting: exiting,
|
||||||
+ exiting: _reactNative.Platform.OS === 'android' ? undefined : exiting,
|
+ collapsible: false,
|
||||||
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
||||||
style: [defaultStyles.toastContent, toastContentStyleCtx, styles?.toastContent],
|
style: [defaultStyles.toastContent, toastContentStyleCtx, styles?.toastContent],
|
||||||
children: [promiseOptions || variant === 'loading' ? 'loading' in icons ? icons.loading : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {}) : icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
children: [promiseOptions || variant === 'loading' ? 'loading' in icons ? icons.loading : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {}) : icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# sonner-native+0.21.0.patch
|
# sonner-native+0.21.0.patch
|
||||||
|
|
||||||
Removes Reanimated exit layout animations from the toasts. This was causing crashes if the toast was hidden while you were scrolling a flatlist.
|
Ensures view collapsing doesn't cause crashes when toasts do the hide animation on android
|
||||||
|
|||||||
Reference in New Issue
Block a user