Skip to content
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] 使用 @ant-design/react-native 5.2.1 Form 组件报错 #1367

Open
1 task done
laoona opened this issue Aug 8, 2024 · 4 comments
Open
1 task done

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

laoona opened this issue Aug 8, 2024 · 4 comments
Labels

Comments

@laoona
Copy link

laoona commented Aug 8, 2024

💬 前提强调

  • 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 laoona added the Bug🐛 label Aug 8, 2024
@1uokun
Copy link
Collaborator

1uokun commented Aug 8, 2024

安装react-native-gesture-handler

https://github.com/ant-design/ant-design-mobile-rn/blob/master/README.zh-CN.md#%E5%AE%89%E8%A3%85peer%E4%BE%9D%E8%B5%96

@laoona
Copy link
Author

laoona commented Aug 8, 2024

安装react-native-gesture-handler

https://github.com/ant-design/ant-design-mobile-rn/blob/master/README.zh-CN.md#%E5%AE%89%E8%A3%85peer%E4%BE%9D%E8%B5%96

多谢,可以了。不过还报一个错误:
image

@1uokun
Copy link
Collaborator

1uokun commented Aug 8, 2024 via email

@laoona
Copy link
Author

laoona commented Aug 8, 2024

跪谢大佬!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants