question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined is not an object(evaluating 'ImagePickerManager.showImagePicker')

See original GitHub issue

screen shot 2017-12-15 at 3 24 57 pm

I Imported it as > var ImagePicker = require(‘react-native-image-picker’); . I am using it as follow- call() { var options = { title: 'Select Avatar', customButtons: [ {name: 'fb', title: 'Choose Photo from Facebook'}, ], storageOptions: { skipBackup: true, path: 'images' } }; ImagePicker.showImagePicker(options, (response) => { if (response.didCancel) { } else if (response.error) { } else if (response.customButton) { } else { let source = { uri: response.uri }; // You can also display the image using data: // let source = { uri: 'data:image/jpeg;base64,' + response.data }; this.setState({ avatarSource: source }); } }); }

Additional Information

react-native-image-picker@0.26.7

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13

github_iconTop GitHub Comments

7reactions
budigacommented, Jan 12, 2018

I met this problem before.you need to rebuild after linking. Just call react-native run-ios/android after calling react-native-link.Hope it help.

2reactions
Dmitrylolocommented, Feb 27, 2019
cd ios
pod install
Read more comments on GitHub >

github_iconTop Results From Across the Web

react native - TypeError: undefined is not an object (evaluating ...
Using React Image Picker i am facing this error: TypeError: undefined is not an object (evaluating '_reactNativeImagePicker.
Read more >
Getting this error :TypeError: undefined is not an object ...
Description I tried to use showImagePicker for version 3 but keep getting the above error How to repeat issue and example step to...
Read more >
react-native-date-picker null is not an object - You.com | The search ...
React Native Image Picker: null is not an object (evaluating 'ImagePickerManager.showImagePicker') Is undefined a function in React Native?
Read more >
React-native – undefined is not an object(evaluating ...
But it is giving me undefined is not an object error. Also please tell me how can I link it to phone gallery...
Read more >
TypeError : undefined is not an object(evaluating '_reactNative ...
이렇게 별도로 import 한 후에 사용했더니 잘됩니다. 문제는. import {showImagePicker} from 'react-native-image-picker';. 해서 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found