ant-design / ant-design-mobile-rn

Ant Design for React Native
https://rn.mobile.ant.design/
MIT License
3.06k stars 611 forks source link

[Bug] View组件会把undefined、false、null显示为空行 #1382

Open littleseven007 opened 2 weeks ago

littleseven007 commented 2 weeks ago

💬 前提强调

🙋 描述详情/重现步骤

View组件会把undefined、false、null显示为空行,Button组件在最新的更新中使用了View组件导致之前使用到Button组件的都出现错位问题

🔴 版本

5.2.3

💻 运行环境

Android

⚫️ npx react-native info输出信息

System: OS: Windows 11 10.0.22631 CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12400 Memory: 3.08 GB / 15.78 GB Binaries: Node: version: 18.18.0 path: C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: version: 9.8.1 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: AI-241.18034.62.2412.12266719 Visual Studio: Not Found Languages: Java: 17.0.10 Ruby: Not Found npmPackages: "@react-native-community/cli": Not Found react: installed: 18.3.1 wanted: 18.3.1 react-native: installed: 0.75.3 wanted: 0.75.3 react-native-windows: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: Not found newArchEnabled: Not found

补充说明

No response

1uokun commented 15 hours ago

请给一个案例