$ yarn add react-native-image-picker
...
let options: ImagePicker.CameraOptions = {
saveToPhotos: true,
mediaType: 'photo',
cameraType: 'front'
};
ImagePicker.launchCamera(options, (response) => {
if (response.assets) {
console.log(response.assets);
}
})
import {launchCamera, launchImageLibrary} from 'react-native-image-picker';