Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

react native image picker camera

$ 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);
  }
})
Source by www.positronx.io #
 
PREVIOUS NEXT
Tagged: #react #native #image #picker #camera
ADD COMMENT
Topic
Name
3+6 =