react-native-image-slider-box icon indicating copy to clipboard operation
react-native-image-slider-box copied to clipboard

Position

Open maryaibtissem opened this issue 5 years ago • 4 comments

Hi! is it possible to assign a position to the slide? for example if I put position={2}, I have the second image that appears

maryaibtissem avatar Mar 04 '20 11:03 maryaibtissem

+1

yasircodingcrafts avatar Mar 11 '20 09:03 yasircodingcrafts

Hi, at the meantime this feature is not available, but I try to sort it out.

intellidev1991 avatar Mar 18 '20 21:03 intellidev1991

+1

softvoltdev avatar Jun 15 '20 20:06 softvoltdev

As a temporary solution, you can use the following:

const attachmentsForModal = attachments.map(({ uri }) => uri)

const getAttachmentsForModal = (idx: number): string[] => [ ...attachmentsForModal.slice(idx), ...attachmentsForModal.slice(0, idx) ]

attachments.map(({ uri }, index) => <TouchableOpacity onPress={() => openImagesModal(getAttachmentsForModal(index))}> <Image source={{ uri }} /> </TouchableOpacity>

bambomax avatar Jun 23 '20 08:06 bambomax