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] Carousel - java.lang.Boolean cannot be cast to java.lang.Double #1328

Closed
1 task done
surya-inbasagaran opened this issue Feb 29, 2024 · 7 comments
Closed
1 task done
Labels

Comments

@surya-inbasagaran
Copy link

💬 Before You Start

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

🙋 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
Copy link
Collaborator

1uokun commented Feb 29, 2024

#1327 (comment)

@surya-inbasagaran
Copy link
Author

#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
Copy link

cw1997 commented Feb 29, 2024

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
Copy link

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

@cw1997
Copy link

cw1997 commented Mar 14, 2024

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

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

@surya-inbasagaran
Copy link
Author

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 1uokun mentioned this issue Mar 15, 2024
1 task
@1uokun
Copy link
Collaborator

1uokun commented Mar 18, 2024

fixed in v5.1.1

@1uokun 1uokun closed this as completed Mar 18, 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

4 participants