kudo / react-native-image-carousell Goto Github PK
View Code? Open in Web Editor NEWA component for image gallery carousell like iOS Photos app
License: MIT License
A component for image gallery carousell like iOS Photos app
License: MIT License
I have API response of list of images. Please help me to add api response in datasource
Hi I am trying to update view by simply changing listView datasource but its not working for me, is any one have idea about it
0
down vote
I have integrated "react-native-image-carousell" (horizontal user list), in this I am trying to show selected user in center but as I select user its start shifting selected user towards right side and for this I have used bellow code.
const layoutWidth = event.layoutMeasurement.width;
const currentIndex = Math.floor((event.contentOffset.x + (0.5 *layoutWidth)) / layoutWidth);
const newPreviewOffset = (((currentIndex - 2) * this.props.previewImageSize) + this._bias)+50;
if (this._previewOffset !== newPreviewOffset && currentIndex > 1) {
this._refPreviewListView.scrollTo({ x: newPreviewOffset });
this._previewOffset = newPreviewOffset;
}
Some apps may want image previews, other may not. For this to be more reusable, there should be a prop for showPreview
I want to get selected item index from carousel is there any way ? and can any one tell me what is the use of "initialIndex" in this module
That is a known issue in iOS UIScrollView
Common solution as the answer is to use nested ScrollView.
Unfortunately, it will cause another issue as react-native #41
Warning: ScrollView doesn't take rejection well - scrolls anyway
One workaround is to re-render view after zooming back.
Hi can we refresh listView
Currently the implementation is based on 's pagingEnabled
and maximumZoomScale
which are both iOS support only.
We should do it with ViewPagerAndroid
or do the logic ourselves in order to support for Android.
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.