Comments (5)
OK friend. No issues. I that case I would need to switch the library.
BTW thanks a lot once again for your amazing work.
from react-native-anchor-carousel.
Hi Jain, I can not reproduce the bug, but according to your screenshot, I had just implement getItemLayout function which I think can fix that bug and improve performance. Please try carousel version 3.1.1 and let me know if this bug still persists. About render large amount of data, you can take a look at this link to add some FlatList props into the carousel for performance : https://github.com/filipemerker/flatlist-performance-tips.
from react-native-anchor-carousel.
Hi lehoangnam97,
Thanks a lot for your prompt response.
Yes, your modification did trick for me. But I'm wondering why First and Last item cards are not center positioned and stick to Left and Right side of the screen respectively. You can see this also in your example provided.
Is there any way to make First and Last item cards center positioned?
Also, regarding large amount of data, I've seen provided link but I need a working example of using those Flatlist properties. So, if you can make it for me using your library then it's very much appreciated.
Thanks in advance.
from react-native-anchor-carousel.
Hi Jane, I'm sorry to say that the purpose of this carousel library was created to deal with the first and last element being in the middle of the other common libraries (because some specific design requires 2 anchor elements 2. side). So if you want to have a carousel with all elements render at center. I prefer you to use these libraries like: https://github.com/archriss/react-native-snap-carousel, https://github.com/kkemple/react-native-sideswipe, https://github.com/machadogj/react-native-carousel-control.
With both react-native-anchor-carousel and react-native-snap-carousel, you can implement some Flatlist properties like this below (depend your project these numbers may different):
<Carousel .... removeClippedSubviews={true} // Be aware that this implementation can have bugs initialNumToRender={5} maxToRenderPerBatch={10} windowSize={100} maxToRenderPerBatch={30} keyExtractor={item => item.id} />
from react-native-anchor-carousel.
Thanks you ^^
from react-native-anchor-carousel.
Related Issues (17)
- Pagination Dots HOT 2
- Need help with current index of carousel HOT 2
- Calling `getNode()` on the ref of an Animated component is no longer necessary HOT 2
- scrollToIndex not working correctly HOT 1
- Only the first image is loaded when used in Flatlist HOT 1
- is there way to reposition last item ? HOT 1
- Center first and last item? HOT 1
- Calling `getNode()` HOT 3
- ScrollToIndex causing swiping issues only for first time HOT 1
- TypeScript support HOT 1
- Scrolling "jank" in android with expo 43 and recent RN versions. HOT 1
- Supporting RTL? HOT 3
- No Autoplay? HOT 3
- Disabled swipe mode ? HOT 3
- How can i render a local image in the uri property ? HOT 1
- It's great, but need autoplay function.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-anchor-carousel.