- ๐ป Developer
- ๐จโ๐ฉโ๐งโ๐ง Husband, Father
r0b0t3d / react-native-carousel Goto Github PK
View Code? Open in Web Editor NEWReact Native carousel
License: MIT License
React Native carousel
License: MIT License
When itemWidth is less than the width of the actual content the content itself is being cut off.
This could be useful when one wants to have side items being visible.
Expected behavior:
Actual behavior:
export const Carousel = withCarouselContext(
({ extractImageUrl, ...props }: Props) => {
const { width, height } = useWindowDimensions();
return (
<View>
<CarouselRN
style={styles.carousel}
loop
itemWidth={width - 60}
inactiveOpacity={1}
inactiveScale={0.82}
renderItem={(data) => {
return (
<View
style={{
borderRadius: 24,
width: width - 40,
height: 183,
overflow: 'hidden',
justifyContent: 'center',
zIndex: 300,
}}
>
<Image
source={{ uri: data.item }}
style={[
{ width: width },
styles.image,
]}
/>
</View>
);
}}
{...props}
/>
</View>
);
}
);
const styles = StyleSheet.create({
image: {
borderRadius: 24,
height: 183,
},
})
When the last slide is scrolled, there is a white flickering on android
(the autoplay and loop props are set to true)
Bug reproduced by example which in repository
Version 3.4.2
Android
I tried to add removeClippedSubviews={false) but then there is an effect of the element appearing on the right
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.