React-native-image-picker: TypeError: Cannot read property 'launchImageLibrary' of undefined, js engine: v8

Created on 5 Nov 2020  路  3Comments  路  Source: react-native-image-picker/react-native-image-picker

ERROR
I have problem using this lib, how to fix it ?
Current version is 3.0.0-vnext.3

Btw I'm using RN 0.63.3 with react-native-v8

photo_2020-11-05_16-25-08

Most helpful comment

solved with replace import ImagePicker from 'react-native-image-picker' to import {launchImageLibrary} from 'react-native-image-picker'

All 3 comments

solved with replace import ImagePicker from 'react-native-image-picker' to import {launchImageLibrary} from 'react-native-image-picker'

This works for launchCamera too. Thanks.

@tamacroft Thanks saved me some precious time. I think this should be added to documentation too, since it is very vague.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ozergul picture ozergul  路  3Comments

kayosouza picture kayosouza  路  4Comments

stefank-kolosek picture stefank-kolosek  路  4Comments

emmaielle picture emmaielle  路  4Comments

akishek22 picture akishek22  路  3Comments