I have three Accordion i want first open by defualt and other too close it worked. but when visit screen first time first render. it open the defualt open Accordion with animation. not already opened.
my code
const open = useSharedValue(openDefault); //openDefault is props having false as it defualt value
<AccordionItem isExpanded={open} viewKey={viewKey}>
{children}
</AccordionItem>
Description
I have three Accordion i want first open by defualt and other too close it worked. but when visit screen first time first render. it open the defualt open Accordion with animation. not already opened. my code
i am using like this
Steps to reproduce
Snack or a link to a repository
https://snack.expo.dev/GR6ji8KoeZ32w_RDt_sMw
Reanimated version
3.16.1
React Native version
0.75.3
Platforms
Android, iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes