An Image Preview component
npm install react-native-image-preview-carousel
import ImagePreviewCarousel from 'react-native-image-preview-carousel';
let source = [
require('./images/pic1.png'),
require('./images/pic2.png'),
require('./images/pic3.png'),
require('./images/pic4.png'),
require('./images/pic5.png')
]
<ImagePreviewCarousel
data={source}
selectedPreviewImageContainerStyle={{}}
mainImageStyle={{ backgroundColor: '#F2F2F2'}}
previewFlatListProps={{}} />
Please check the example folder.
type array
required: YES
description: Array of Images
type object
defaultValue: {}
description: You can pass all the flatlist props to Main Image Flatlist
type object
defaultValue: {}
description: You can pass all the flatlist props to Preview Image Flatlist
type: style
defaultValue: {}
type: style
defaultValue: {}
type: style
defaultValue: {}
type: style
defaultValue: {}
type: style
defaultValue: {}
type: style
defaultValue: {}
type: style
defaultValue: {}
type: style
defaultValue: {}