-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
if high number of slides scrolling/sliding not working properly #582
Comments
Hey there @maghamvinod! Long time no see in the issue realm. Hope you're doing well amidst all the coding adventures! 😄👋 Based on the issues you've described, it seems like you're encountering performance issues when dealing with a high number of slides in the One of the solutions suggested in a similar issue #207 is to set a value for the Another approach to handle this issue is to implement a lazy loading mechanism. The Here's an example of how you might modify a carousel item to use import React, { useState, useEffect } from 'react';
import { View, Text } from 'react-native';
import { LazyView } from './LazyView'; // Adjust the import path as necessary
// Example carousel item component
const CarouselItem = ({ index, isActive }) => {
// isActive is a prop to determine if this item is currently active (visible)
return (
<LazyView shouldUpdate={isActive}>
<View>
<Text>Slide {index}</Text>
</View>
</LazyView>
);
};
export default CarouselItem; In this example, The Please try these solutions and let me know if they help resolve your issue. If not, could you provide more specific details about your implementation for further assistance? Sources
|
I used windowsize property also, but not exact animation is coming. If I scroll to next views the previous slides also coming. |
Hi, |
Hi @dohooo , any update on this. Only android side having issue. Ios side it is fine. |
No description provided.
The text was updated successfully, but these errors were encountered: