Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

TypeError: null is not an object (evaluating 'react_native_1.NativeModules.RNAndroidURIPath.getPath') #1

Closed
alan-dx opened this issue Dec 14, 2020 · 2 comments

Comments

@alan-dx
Copy link

alan-dx commented Dec 14, 2020

Hey guys, i am trying to use the package to convert an android uri to a real path, but I found this error as soon as I imported the module, any idea how to solve it?

TypeError: null is not an object (evaluating 'react_native_1.NativeModules.RNAndroidURIPath.getPath')

I just import the module and found this.

PS: I found this repository right here: (react-native-documents/document-picker#70). I am facing a similar error.

@demchenkoalex
Copy link
Member

@alan-dx Hi, sorry I totally missed this issue, I need to watch the repository :) null is not an object that means either NativeModules or RNAndroidURIPath is null, and you are trying calling a function on null. Both of those are related to the native module configuration, my guess that it wasn't installed properly. Can you print RNAndroidURIPath? It should print null. What version of React Native are you using? I will try to add this to the clean project and see what's going on.

@demchenkoalex
Copy link
Member

Verified on an empty project, module is not null. Closing due to no response.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants