flyerhq / react-native-android-uri-path Goto Github PK
View Code? Open in Web Editor NEWGet an absolute path to a file retrieved by Android's Intent.ACTION_GET_CONTENT that returns a content URI.
License: MIT License
Get an absolute path to a file retrieved by Android's Intent.ACTION_GET_CONTENT that returns a content URI.
License: MIT License
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.
Work fine with react-native-document-picker
to pick files and get their path.
but can't get path for a directory.
const path = await pickDirectory()
if (path !== null) {
const realPath = getPath(path.uri);
// Error: Exception in HostFunction: java.lang.UnsupportedOperationException: Unsupported Uri
// content://com.android.externalstorage.documents/tree/primary%3A...
console.log(realPath);
}
I'm trying to use this library because was hoping it could help me get the real path (only API 29, and on Pixel 3a) to this content://
content://com.android.providers.downloads.documents/document/msf:12
Related to these:
Unfortunately, its still getting "Permission Denial: reading com.android.providers.downloads.DownloadStorageProvider uri content://com.android.providers.downloads.documents/document/msf:12 from pid=21777, uid=10103 requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs"
Any idea?
Hello. I am trying to use this library to convert uri to path but it just returns error.
example:
getPath(content://com.android.externalstorage.documents/tree/primary%3AAndroid%2Fmedia)
this return:
Error: Exception in HostFunction: java.lang.UnsupportedOperationException: Unsupported Uri content://com.android.externalstorage.documents/tree/primary%3AAndroid%2Fmedia
RN: 0.66
Latest version lib instaled
Hi, I'm facing this issue while running react-native run-android.
Task :flyerhq_react-native-android-uri-path:compileDebugKotlin FAILED
'compileDebugJavaWithJavac' task (current target is 1.7) and
'compileDebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.```
remove all references to jcenter with mavenCentral and jitpack should work perfectly
Hi i got these two when trying to run. Any idea?
flyer/rnandroiduripath/RNAndroidURIPathModule.kt: (33, 37): Unresolved reference: source
flyer/rnandroiduripath/RNAndroidURIPathModule.kt: (34, 33): Unresolved reference: sink
My RN is "react-native": "0.63.3",
"@flyerhq/react-native-android-uri-path": "^2.2.0",
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.