Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

error while using expo-image-picker:TypeError: undefined is not an object (evaluating '_expoModulesCore.NativeModulesProxy.ExponentImagePicker')

$
0
0

im using expo-image-picker i am facing this
Error: Requiring module "node_modules\expo-image-picker\build\ImagePicker.js", which threw an exception: TypeError: undefined is not an object (evaluating '_expoModulesCore.NativeModulesProxy.ExponentImagePicker')

enter image description here

this is my code.

import * as ImagePicker from 'expo-image-picker';(async () => {      let pickerResult = await ImagePicker.launchImageLibraryAsync({        mediaTypes: ImagePicker.MediaTypeOptions.Images,        base64: true,        aspect: [4, 3],        quality: 0.5,      })      if (pickerResult.cancelled === true) {        return      }      let locaUri = pickerResult.uri      //console.log(pickerResult.base64)      let image: string = pickerResult.base64!    })()

im getting error when start the app


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>