bereaksi kamera pemetik gambar asli
$ 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);
}
})
GutoTrosla