Update sonner-native, remove patch (#11300)
This commit is contained in:
+1
-1
@@ -250,7 +250,7 @@
|
||||
"setimmediate": "^1.0.5",
|
||||
"slugify": "^1.6.9",
|
||||
"sonner": "^2.0.7",
|
||||
"sonner-native": "0.21.0",
|
||||
"sonner-native": "0.26.4",
|
||||
"tippy.js": "^6.3.7",
|
||||
"tlds": "^1.234.0",
|
||||
"tldts": "^6.1.46",
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
diff --git a/lib/module/toast.js b/lib/module/toast.js
|
||||
index be089f3ff23017a6844e2010cedc547729e198aa..c2dd0fa2df93f929c33bf2bcc3e6f921941fa006 100644
|
||||
--- a/lib/module/toast.js
|
||||
+++ b/lib/module/toast.js
|
||||
@@ -1,8 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
import * as React from 'react';
|
||||
-import { ActivityIndicator, Pressable, Text, View } from 'react-native';
|
||||
-import Animated, { useAnimatedStyle, useSharedValue, withRepeat, withTiming } from 'react-native-reanimated';
|
||||
+import { ActivityIndicator, Pressable, Text, View, Platform } from 'react-native';
|
||||
+import Animated, { useAnimatedStyle, useSharedValue, withRepeat, withTiming, FadeOut } from 'react-native-reanimated';
|
||||
import { ANIMATION_DURATION, useToastLayoutAnimations } from "./animations.js";
|
||||
import { toastDefaultValues } from "./constants.js";
|
||||
import { useToastContext } from "./context.js";
|
||||
@@ -258,7 +258,10 @@ export const Toast = /*#__PURE__*/React.forwardRef(({
|
||||
...toastSwipeHandlerProps,
|
||||
children: /*#__PURE__*/_jsx(Animated.View, {
|
||||
entering: entering,
|
||||
- exiting: exiting,
|
||||
+ exiting: Platform.select({
|
||||
+ android: undefined,
|
||||
+ default: exiting
|
||||
+ }),
|
||||
children: jsx
|
||||
})
|
||||
});
|
||||
@@ -268,7 +271,10 @@ export const Toast = /*#__PURE__*/React.forwardRef(({
|
||||
children: /*#__PURE__*/_jsx(Animated.View, {
|
||||
style: [unstyled ? undefined : elevationStyle, defaultStyles.toast, toastStyleCtx, styles?.toast, style, wiggleAnimationStyle],
|
||||
entering: entering,
|
||||
- exiting: exiting,
|
||||
+ exiting: Platform.select({
|
||||
+ android: undefined,
|
||||
+ default: exiting
|
||||
+ }),
|
||||
children: /*#__PURE__*/_jsxs(View, {
|
||||
style: [defaultStyles.toastContent, toastContentStyleCtx, styles?.toastContent],
|
||||
children: [promiseOptions || variant === 'loading' ? 'loading' in icons ? icons.loading : /*#__PURE__*/_jsx(ActivityIndicator, {}) : icon ? /*#__PURE__*/_jsx(View, {
|
||||
@@ -1,3 +0,0 @@
|
||||
# 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.
|
||||
Generated
+10
-9
@@ -235,7 +235,6 @@ patchedDependencies:
|
||||
react-native-svg@15.12.1: ae309e9542214f5ae54935e253dedd236765feedac7be343f81d532d7fe09310
|
||||
react-native-view-shot@4.0.3: a2457dc30a82cc8c21f371a6f860d9396d450a2a1b4265b1a4ee13bdb24d3268
|
||||
react-native@0.81.5: 91fd85363059530dea649a5ca6012b933f79c8491737fbfdc685abc727e48403
|
||||
sonner-native@0.21.0: 4bcd0da0fec32e943460e6e788a9e4adf601b507d2dfd0c8246a6c8c74d8f638
|
||||
|
||||
importers:
|
||||
|
||||
@@ -704,8 +703,8 @@ importers:
|
||||
specifier: ^2.0.7
|
||||
version: 2.0.7(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
|
||||
sonner-native:
|
||||
specifier: 0.21.0
|
||||
version: 0.21.0(patch_hash=4bcd0da0fec32e943460e6e788a9e4adf601b507d2dfd0c8246a6c8c74d8f638)(5ea2ec37c6a5148ff23b188daa828e75)
|
||||
specifier: 0.26.4
|
||||
version: 0.26.4(3a6c59a17e5ffd1337aacfe8e7a46e0a)
|
||||
tippy.js:
|
||||
specifier: ^6.3.7
|
||||
version: 6.3.7
|
||||
@@ -8485,16 +8484,17 @@ packages:
|
||||
sockjs@0.3.24:
|
||||
resolution: {integrity: sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==}
|
||||
|
||||
sonner-native@0.21.0:
|
||||
resolution: {integrity: sha512-pIdyMd722xuDukIvCZCmWh9Jy5FV+m9uKYl3oAzonYE+91eX5556vYrIik5MisDlBniSXaWqC9CnPoS6DKo2Lg==}
|
||||
sonner-native@0.26.4:
|
||||
resolution: {integrity: sha512-wBE/pctNfz+ieXjpYX7uu5hH38ws8xRmH0AFmEdEgkOS363k6N8QfFoyjGqDmdUDy15m4AAvOjd2Wz/jATukIA==}
|
||||
peerDependencies:
|
||||
react: '*'
|
||||
react-native: '*'
|
||||
react-native-gesture-handler: '>=2.16.1'
|
||||
react-native-gesture-handler: '>=2.28.0'
|
||||
react-native-reanimated: 4.3.2
|
||||
react-native-safe-area-context: '>=4.10.5'
|
||||
react-native-safe-area-context: ^5.6.0
|
||||
react-native-screens: 4.24.0
|
||||
react-native-svg: '>=15.6.0'
|
||||
react-native-svg: ^15.12.1
|
||||
react-native-worklets: 0.8.3
|
||||
|
||||
sonner@2.0.7:
|
||||
resolution: {integrity: sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==}
|
||||
@@ -18331,7 +18331,7 @@ snapshots:
|
||||
uuid: 8.3.2
|
||||
websocket-driver: 0.7.4
|
||||
|
||||
sonner-native@0.21.0(patch_hash=4bcd0da0fec32e943460e6e788a9e4adf601b507d2dfd0c8246a6c8c74d8f638)(5ea2ec37c6a5148ff23b188daa828e75):
|
||||
sonner-native@0.26.4(3a6c59a17e5ffd1337aacfe8e7a46e0a):
|
||||
dependencies:
|
||||
react: 19.1.0
|
||||
react-native: 0.81.5(patch_hash=91fd85363059530dea649a5ca6012b933f79c8491737fbfdc685abc727e48403)(@babel/core@7.29.0)(@react-native/metro-config@0.86.0(@babel/core@7.29.0))(@types/react@19.1.17)(react@19.1.0)
|
||||
@@ -18340,6 +18340,7 @@ snapshots:
|
||||
react-native-safe-area-context: 5.6.2(react-native@0.81.5(patch_hash=91fd85363059530dea649a5ca6012b933f79c8491737fbfdc685abc727e48403)(@babel/core@7.29.0)(@react-native/metro-config@0.86.0(@babel/core@7.29.0))(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
||||
react-native-screens: 4.24.0(react-native@0.81.5(patch_hash=91fd85363059530dea649a5ca6012b933f79c8491737fbfdc685abc727e48403)(@babel/core@7.29.0)(@react-native/metro-config@0.86.0(@babel/core@7.29.0))(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
||||
react-native-svg: 15.12.1(patch_hash=ae309e9542214f5ae54935e253dedd236765feedac7be343f81d532d7fe09310)(react-native@0.81.5(patch_hash=91fd85363059530dea649a5ca6012b933f79c8491737fbfdc685abc727e48403)(@babel/core@7.29.0)(@react-native/metro-config@0.86.0(@babel/core@7.29.0))(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
||||
react-native-worklets: 0.8.3(@babel/core@7.29.0)(@react-native/metro-config@0.86.0(@babel/core@7.29.0))(react-native@0.81.5(patch_hash=91fd85363059530dea649a5ca6012b933f79c8491737fbfdc685abc727e48403)(@babel/core@7.29.0)(@react-native/metro-config@0.86.0(@babel/core@7.29.0))(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
||||
|
||||
sonner@2.0.7(react-dom@19.1.0(react@19.1.0))(react@19.1.0):
|
||||
dependencies:
|
||||
|
||||
@@ -39,7 +39,6 @@ patchedDependencies:
|
||||
'react-native-svg@15.12.1': patches/react-native-svg@15.12.1.patch
|
||||
'react-native-view-shot@4.0.3': patches/react-native-view-shot@4.0.3.patch
|
||||
'react-native@0.81.5': patches/react-native@0.81.5.patch
|
||||
'sonner-native@0.21.0': patches/sonner-native@0.21.0.patch
|
||||
minimumReleaseAgeExclude:
|
||||
- '@atproto/*'
|
||||
- '@bsky.app/*'
|
||||
|
||||
Reference in New Issue
Block a user