ant-design / ant-design-mobile-rn

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

[Bug] Carousel - java.lang.Boolean cannot be cast to java.lang.Double #1328

Closed surya-inbasagaran closed 6 months ago

surya-inbasagaran commented 7 months ago

💬 Before You Start

🙋 Description/Step to reproduce

import Carousel from '@ant-design/react-native/lib/carousel'; import Tabs from '@ant-design/react-native/lib/tabs';

Wherever I have used this component I faced this conversion issue, I am trying this in Expo. When I tested in the web it worked fine, when I try to test this on the device, I am facing this conversion issue. Screenshot_20240229-113847

💻 Environment

Android, Expo

⚫️ Output of npx react-native info

Screenshot_20240229-113847

Additional comments

No response

1uokun commented 7 months ago

https://github.com/ant-design/ant-design-mobile-rn/issues/1327#issuecomment-1970419406

surya-inbasagaran commented 7 months ago

#1327 (comment)

but I haven't used "react-native-gesture-handler" package in my project. Is it mandatory to have that package for ant-design package to work ?

cw1997 commented 7 months ago

Sorry, I try to add "react-native-gesture-handler": "2.14.0" to package.json@dependencies and package.json@peerDependencies, but they all don't work. Is there any way to fix this problem? Thank you!

image

1291862631 commented 6 months ago

什么问题。升级了就出现了。回退也不行

cw1997 commented 6 months ago

什么问题。升级了就出现了。回退也不行

我也遇到了一模一样的BUG,但是回退到5.0.2版本(不要带任何语义化版本前缀)就好了

surya-inbasagaran commented 6 months ago

Even downgrading to a lower version also, it's not working, I think it's based on the node version they used in the package.

1uokun commented 6 months ago

fixed in v5.1.1