Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onPress() {
images[currentIndex] &&
CameraRoll.save(images[currentIndex].uri, { type: 'photo' })
.then(() => {
setModalVisibility(false)
handleMessage(t('chat.files.image-saved'))
})
.catch((err) => console.log(err))
},
},