React Native Image Picker: "undefined Is Not An Object (evaluating 'imagepickermanager.showimagepicker')"
I followed the Readme from react-native-image-picker with both manual and automatic linking (tried both separately). When I launch simulator from terminal using react-native run-i
Solution 1:
It seemed that Xcode was not linking the files properly, the trick who worked for me was to:
- Open Xcode project 'MainProject.xcodeproj'
- Under MainProject under Libraries I would go find RNImagePicker.xcodeproj
- Under RNImagePicker.xcodeproj I would right click and delete both files ImagePickerManager.h and ImagePickerManager.m
- Right click on RNImagePicker.xocdeproj to 'Add files to ...' and then would select both files from 'node_modules/react-native-maps/ios/ImagePickerManager.h and ImagePickerManganer.m'
Hope it helps somebody who might have the same problem ;)
Post a Comment for "React Native Image Picker: "undefined Is Not An Object (evaluating 'imagepickermanager.showimagepicker')""