-
Notifications
You must be signed in to change notification settings - Fork 611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Toast不显示图标 #1354
Comments
检查一下 |
"@ant-design/icons-react-native": "^2.3.2",有的 |
如果是xcode环境,需要借助react-native-asset正确link字体文件 |
可以试一下网站上的这一步,我按这步操作了,仍然没显示,不过你可以试一下
|
💬 前提强调
🙋 描述详情/重现步骤
// 化验工单详情
import React, {useState, useEffect, useRef} from 'react';
import {
ActivityIndicator,
} from 'react-native';
import {Toast, Provider} from '@ant-design/react-native';
// 提交化验项目
const submitLabItem = async () => {
try {
Promise.all(
onChangeText.map(async item => {
const response = await labItemHandleApi(item);
// 在这里可以对每个元素的响应进行处理
}),
).then(() => {
// Alert.alert('提交成功', '', [{text: '知道了', style: 'cancel'}]);
Toast.show({
content: '提交成功',
// icon: ,
icon: ,
}
}
return (
........
);
};
🔴 版本
8.19.2
💻 运行环境
Android
⚫️
npx react-native info
输出信息System:
OS: Windows 11 10.0.22621
CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-12500H
Memory: 2.10 GB / 15.73 GB
Binaries:
Node:
version: 18.12.1
path: D:\nodejs\node.EXE
Yarn: Not Found
npm:
version: 10.7.0
path: E:\SmartWater\SmartWaterAndroidApp\node_modules.bin\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio:
Languages:
Java: 17.0.11
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.74.0
wanted: 0.74.0
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
补充说明
不显示图标 并且show方法被划掉了
The text was updated successfully, but these errors were encountered: