From 10f01bf99b13a1bb3d689e5bd0e1ebe4cc744c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=9D=E6=9C=A8?= <31363817+WhiteSean@users.noreply.github.com> Date: Tue, 19 Apr 2022 19:07:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DshowToast=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E9=94=99=E8=AF=AF=20(#11666)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: lixiaobing Co-authored-by: tony chen <329604487@qq.com> --- packages/taro-rn/src/lib/showModal/error.png | Bin 0 -> 2143 bytes packages/taro-rn/src/lib/showModal/toast.tsx | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 packages/taro-rn/src/lib/showModal/error.png diff --git a/packages/taro-rn/src/lib/showModal/error.png b/packages/taro-rn/src/lib/showModal/error.png new file mode 100644 index 0000000000000000000000000000000000000000..6f54a262a1cbbee05a2fb9bed5e1b4f2400ad17f GIT binary patch literal 2143 zcmZ`)XH=637X1=}Fhl_XiS%md#?Yh)8Vq1WA|N2epadZTp@SkN5S$=obTpLE2N~EOyXWjV`{TZQ-@EtkJ2%k=Yk5RKQUCyeBbWP$z_ZVw zgIgZ>Kkl_Wp8x8DpgaG2IRM~$k3pmC!$Ci?Imr&@$C-Dk2L}G-_L6sN5-)6KJ}ji8 zbb7@ca~uv&P(~q6%yl;}m$Kz<^t_TktmO0JRC~mu0{KFUEu^Wa-sgCOuo&Y>?dXha z2(9UB$TTZUCxq4T^UTuJn6b`G`pi~V$fxY|$o0h@n<}*Y(F+g}^8b=Dc_M{{-^$3y zaEawmX5qT9xu!+!Z79yXMMy|!A(~zq)Jl%zX@6RvH)}dzrqRRSDDhjpvM6y*AmiMO zjZ`!hOP4d`e?*k>paTB#<#AmWTxA!kzvbxy#oN?uk_Dj`848IWg>2S<`MCIVL^Ic3 zqdy@X6;=i&iJi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(uOiqWS>?D zYN3#eB3M0-0kP=*GQ{3GtLme@awIfotU!D5>sRf#tc! zmugN{9WF&}tls(Pd^g;{E~5 C7V9wp literal 0 HcmV?d00001 diff --git a/packages/taro-rn/src/lib/showModal/toast.tsx b/packages/taro-rn/src/lib/showModal/toast.tsx index 8b4c28061124..6c630177472c 100644 --- a/packages/taro-rn/src/lib/showModal/toast.tsx +++ b/packages/taro-rn/src/lib/showModal/toast.tsx @@ -3,6 +3,7 @@ import PropTypes from 'prop-types' import { View, Text, Image, StyleSheet, ActivityIndicator } from 'react-native' import RootSiblings from 'react-native-root-siblings' import successPng from './success.png' +import errorPng from './error.png' import { errorHandler, shouldBeObject, successHandler } from '../../utils' const globalAny: any = global @@ -148,7 +149,7 @@ function showToast (options: Taro.showToast.Option): Promise - + {title || ''}