How to use the expo-image-picker.ImagePicker.MediaTypeOptions function in expo-image-picker

To help you get started, we’ve selected a few expo-image-picker 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 Vivify-Ideas / expo-boilerplate / screens / main / profile / EditProfile.js View on Github external
const openImagePicker = async () => {
    const result = await ImagePicker.launchImageLibraryAsync({
      mediaTypes: ImagePicker.MediaTypeOptions.Images,
      allowsEditing: true,
      aspect: [4, 4]
    });

    setSelectedImage(result);
  };

expo-image-picker

Provides access to the system's UI for selecting images and videos from the phone's library or taking a photo with the camera.

MIT
Latest version published 3 months ago

Package Health Score

91 / 100
Full package analysis