Skip to content Skip to sidebar Skip to footer

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:

  1. Open Xcode project 'MainProject.xcodeproj'
  2. Under MainProject under Libraries I would go find RNImagePicker.xcodeproj
  3. Under RNImagePicker.xcodeproj I would right click and delete both files ImagePickerManager.h and ImagePickerManager.m
  4. 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')""