How to use the @react-native-community/cameraroll.save function in @react-native-community/cameraroll

To help you get started, we’ve selected a few @react-native-community/cameraroll examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github berty / berty / js / packages / components / modals / ImageView.tsx View on Github external
onPress() {
				images[currentIndex] &&
					CameraRoll.save(images[currentIndex].uri, { type: 'photo' })
						.then(() => {
							setModalVisibility(false)
							handleMessage(t('chat.files.image-saved'))
						})
						.catch((err) => console.log(err))
			},
		},

@react-native-community/cameraroll

React Native Camera Roll for iOS & Android

MIT
Latest version published 3 years ago

Package Health Score

59 / 100
Full package analysis