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 000000000000..dec79f144c53 Binary files /dev/null and b/packages/taro-rn/src/lib/showModal/error.png differ diff --git a/packages/taro-rn/src/lib/showModal/toast.tsx b/packages/taro-rn/src/lib/showModal/toast.tsx index 8b4c28061124..7b7633271808 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 @@ -18,6 +19,11 @@ const styles = StyleSheet.create({ width: 55, height: 55 }, + toastErrorIcon: { + width: 42, + height: 42, + marginBottom: 10, + }, toastContent: { color: '#FFFFFF', textAlign: 'center' @@ -148,7 +154,7 @@ function showToast (options: Taro.showToast.Option): Promise - + {title || ''}