jeongshin / react-native-awesome-swiper Goto Github PK
View Code? Open in Web Editor NEWSwiper UI Library for React Native ๐๐ปโโ๏ธ
Home Page: https://docs.react-native-awesome-swiper.site
Swiper UI Library for React Native ๐๐ปโโ๏ธ
Home Page: https://docs.react-native-awesome-swiper.site
I would like a delegate that gives me back the index we scrolled to once the scroll ends so I can update my current index state variable.
Currently, I update the currentIndex on button press which works fine but when the user swipes right or left on the list, the index doesn't update because there is not delegate or callback for it.
My code below:
<DynamicItemScrollSwiper
horizontal
data={data}
viewOffset={0}
gap={10}
snapToInterval={PAGE_WIDTH}
decelerationRate="fast"
renderItem={renderPrayerTimesList}
activeIndex={currentIndex}
/>
https://docs.react-native-awesome-swiper.site/docs/SwiperUI/ScaleSwiper/Provider
i am trying to use the context but not effects are being triggered when i interact with the slider(swipping left and right)
On initial render, the swiper is being rendered 3 times. This can be problematic if there are a lot of items in the array.
In the demo, you can see 7 items in the array but the logs happen 21 times
Demo: https://snack.expo.dev/@muslimplusapp/react-native-awesome-carousel
Does this indicator provide display and hide attributes?
Thanks for this awesome library. I have a bug where activeIndex
is not the default index and it autoscrolls to the correct index on page load. This causes unnecessary re-renders on my components. Is there a way to start right away on the active index on page load?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.