ant-design-mobile-rn icon indicating copy to clipboard operation
ant-design-mobile-rn copied to clipboard

[Bug] 使用 @ant-design/react-native 5.2.1 Form 组件报错

Open laoona opened this issue 6 months ago • 4 comments

💬 前提强调

  • [X] I have searched the issues of this repository and believe that this is not a duplicate.

🙋 描述详情/重现步骤

简单代码:

import { View } from 'react-native';
import { Form } from '@ant-design/react-native';

export default function FormPage () {
  return <View>
    <Form />
  </View>;
}

只要引用了 Form 组件,就报下面的错误 image

🔴 版本

5.2.1

💻 运行环境

iOS

⚫️ npx react-native info输出信息

warn Package @ant-design/icons-react-native contains invalid configuration: "dependency.assets" is not allowed. Please verify it's properly linked using "npx react-native config" command and contact the package maintainers about this. info Fetching system and libraries information... System: OS: macOS 14.5 CPU: (10) arm64 Apple M1 Max Memory: 173.64 MB / 32.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 18.16.0 path: ~/.nvm/versions/node/v18.16.0/bin/node Yarn: version: 3.6.4 path: ~/Library/pnpm/yarn npm: version: 9.5.1 path: ~/.nvm/versions/node/v18.16.0/bin/npm Watchman: version: 2023.12.04.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.14.3 path: /Users/laoona/.rvm/gems/ruby-2.7.5/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 23.5 - iOS 17.5 - macOS 14.5 - tvOS 17.5 - visionOS 1.2 - watchOS 10.5 Android SDK: Not Found IDEs: Android Studio: 2024.1 AI-241.18034.62.2411.12071903 Xcode: version: 15.4/15F31d path: /usr/bin/xcodebuild Languages: Java: version: 18.0.2 path: /usr/bin/javac Ruby: version: 2.7.5 path: /Users/laoona/.rvm/rubies/ruby-2.7.5/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.74.3 wanted: 0.74.3 react-native-macos: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false

补充说明

使用的 react-native 版本 0.74.3

laoona avatar Aug 08 '24 09:08 laoona