phil-r / react-native-looped-carousel

:carousel_horse: Looped carousel for React Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

if number image > 1 slide into 1 image zoomed in

GuillotJessica opened this issue · comments

if my list of image (all exact same ratio) is > 1, it look like it is zoomed in, and swich bullet go from one side of the image to an other, gallery width and height are set and property resizeMode={'cover'}

return <Carousel delay={4000}
                             style={{width: '100%', height: width / 2}}
                             autoplay
                             bullets={img.length > 1}
            >
                {
                    arrImg.map((item, i) => <Image
                        resizeMode={'cover'}
                        key={'Carousel' + i}
                        style={{width: "100%", height: width / 2}}
                        source={{uri: 'https:' + img[i]}}
                    />)
                }
            </Carousel>