We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
very slow when there is more than 20 items
The text was updated successfully, but these errors were encountered:
I was facing the same issue. I made a few improvements to my implementation and was able to enhance performance.
1- I made sure I am passing components correctly I am utilizing touchableComponent prop. I was passing it like this:
<Accordion touchableComponent={(props) => <myTouchable {...props}>} {...} />
corrected it by passing it directly to avoid re-renders
<Accordion touchableComponent={myTouchable} {...} />
2- I used useMemo for renderSectionTitle, renderHeader, renderConten to also avoid re-render when state is changed.
const SliderHeader = React.memo(({ item }) => { ... });
<Accordion renderHeader={(item) => <SliderHeader item={item} />} {...} />
Review your code throughly and make sure your utilizing React Memo when its needed.
Sorry, something went wrong.
No branches or pull requests
very slow when there is more than 20 items
The text was updated successfully, but these errors were encountered: