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

Accordion not working with new architecture enabled #2545

Open
3 of 6 tasks
nnphong1904 opened this issue Oct 28, 2024 · 5 comments
Open
3 of 6 tasks

Accordion not working with new architecture enabled #2545

nnphong1904 opened this issue Oct 28, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@nnphong1904
Copy link

nnphong1904 commented Oct 28, 2024

Description

The accordion component doesn't work with new architecture enabled

CodeSandbox/Snack link

https://github.com/nnphong1904/glutstack-accordion-reproduction

Steps to reproduce

  1. Clone project
  2. Run bun i to install all dependencies
  3. Run bun expo run ios
  4. Test around with accordion component

gluestack-ui Version

v2

Platform

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • iOS

Other Platform

No response

Additional Information

  • I made some investigation. The onLayout function in AnimatedHeight will be fired with the 0 height. So the calculation for the children's height will not be correct.
@rajat693
Copy link
Collaborator

rajat693 commented Nov 5, 2024

hi @nnphong1904 please install the latest version of react-native-svg.

@nnphong1904
Copy link
Author

nnphong1904 commented Nov 5, 2024

@rajat693 I'm confused here. Why does the react-native-svg version relate to this issue? In my current project, I'm using the latest react-native-svg version, but the issue is still happening.

@rajat693
Copy link
Collaborator

rajat693 commented Nov 6, 2024

@nnphong1904 react-native-svg is used in icon. For now instead of using bun you can use npm. We are working on resolving this issue.

@nnphong1904
Copy link
Author

@rajat693 I don't have any issue with the icon. The icon is still working. The problem is with the accordion content. It doesn't open when I press the trigger. I think it is related to the StyleSheet. absolutely. I removed it and replace with position: absolute and the issue is fixed

@Kirill5k
Copy link

@nnphong1904, I am facing the same issue. could you please explain how did you manage to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants