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.

[🐛] Getting TypeError : null is not an object (evaluating '_reactNative.NativeModules.ImagePickerManager.launchImageLibrary')

See original GitHub issue

Description

I tried to use this library and using the latest version (3.3.3), but when launching the library always failed and get this message in log : “null is not an object (evaluating ‘_reactNative.NativeModules.ImagePickerManager.launchImageLibrary’)”

I already import the lib as shown in the docs and #1531 but still getting that error

import {launchImageLibrary} from 'react-native-image-picker';

and call the function like this : launchImageLibrary({mediaType:'photo',cameraType:'front'},(res)=>{ console.log('my result is',res) })

How to repeat issue and example

  • step to reproduce the issue

Solution

What needs to be done to address this issue?

Additional Information

  • Image Picker version: 3.3.3
  • React Native version: 0.63.3
  • Platform: Android
  • Development Operating System: Windows
  • Dev tools: [FILL THIS OUT: Xcode or Android Studio version, iOS or Android SDK version, if applicable] navigation crash for Android

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

5reactions
NoahVandycommented, May 3, 2021

I am still having the same problem after installing the later version and restarting the node server. Can this be reopened?

0reactions
Johan-dutoitcommented, May 10, 2021

Restarting the node server is only half the solution. You need to rebuild your application, as you would after installing any native module.

Read more comments on GitHub >

github_iconTop Results From Across the Web

With Expo, get this error: [TypeError: null is not an object ...
With Expo, get this error: [TypeError: null is not an object (evaluating '_reactNative.NativeModules.ImagePickerManager.launchImageLibrary')][ 🐛 ] #1786.
Read more >
React Native Image Picker: null is not an object (evaluating ...
1. I am using the React-native-image-picker v3.1.1. TypeError: null is not an object (evaluating '_reactNative.NativeModules. · same here. did ...
Read more >
null is not an object (evaluating '_reactNative.NativeModules ...
TypeError : null is not an object (evaluating '_reactNative.NativeModules.ImagePickerManager.launchImageLibrary')][🐛]
Read more >
null is not an object react native date picker - You.com
I receive the following error when trying to open the modal… TypeError: null is not an object (evaluating '_reactNative.NativeModules.RNDatePickerManager.
Read more >
How To Fix TypeError null is not an object (evaluating ...
React Native Tutorial - This Video ShowsHow To Fix TypeError null is not an object ( evaluating 'dispatcher.useState) TypeError react native ...
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