ahmed3mar / react-native-slick Goto Github PK
View Code? Open in Web Editor NEWThis project forked from leecade/react-native-swiper
The best Slick component for React Native.
License: MIT License
This project forked from leecade/react-native-swiper
The best Slick component for React Native.
License: MIT License
Macos
No errors on Android
Current version raise error for "ViewPagerAndroid"
Error details:
Invariant Violation: VoewPagerAndroid has been removed from React Native.
It can now be installed and imported from 'react-native-viewpager' instead of 'react-native'
It will only appear in Android platform
Hi, when I set statics images its work well but when I try to load images from the server using API and try to set them it will not work here is my code
const self = this;
var loadOrderList = {
method: "GET",
url: Location_URL,
headers: {
'Accept':'application/json',
'Content-Type':'application/json'
},
json: true
};
axios(loadOrderList)
.then(function (response) {
self.setState({
imageBanner: response.data.banneres,
homeCategory: response.data.homeCategory
})
console.log(self.state.imageBanner, self.state.imgList);
})
.catch(function (error) {
//console.log(error);
});
Set images to slider
<Slick style={styles.wrapper} height={500} loop={true} autoplay={true}>
{
this.state.imageBanner.map((item, i) => <Slide
loadHandle={this.loadHandle}
loaded={!!this.state.loadQueue[i]}
uri={item}
i={i}
key={i} />)
}
</Slick>
Plz tell me how to fix this issue thanks
I am looking for a slick library for my existing react app. I checked your example, however it needs "react-native init AwsomeProject" at the beginning. I wonder if it is possible to just use your slider as a component instead of "init" from the very beginning. If so, how should I do it? and how should I register at the end?
thank you.
Hi, onTouchEnd return undefined state and context on android but working on ios.
Could you give us some examples for partial slide?
Basically when slide 1 is in front I want to see a little bit part of slide 2
Which versions are you using:
Which versions are you using:
Which versions are you using:
active dot must change when I change the page
active dot keep in first
<Slick height={'100%'} showsPagination={true} loop={true} activeDotStyle={{backgroundColor: '#000000', width: 13, height: 13, borderRadius: 13/2, overflow: 'hidden'}} dot={ <View style={{backgroundColor: '#bfbfbf', width: 13, height: 13, borderRadius: 13/2, overflow: 'hidden', marginLeft: 5, marginRight: 5}} /> } paginationStyle={{ top: -500, }} showsButtons={false}> { this.state.news.map((item)=> { return ( <View style={{width: '100%', height: '100%', alignItems: 'center', justifyContent: 'center'}}> <Image source={{uri: item.img_en}} style={{ width: 371, height: 576}} resizeMode={'contain'} /> </View> ) }) } </Slick>
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.