Git Product home page Git Product logo

react-native-android-uri-path's People

Contributors

demchenkoalex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-android-uri-path's Issues

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

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.

Can't get path for directory

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);
}

Handling API 29 Content:// msf prefix real paths

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?

How this works

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

Build failed with jvm target compatibility

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.```

Unresolved reference source /sink

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",

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.