alpha0010 / react-native-file-access

Filesystem access for React Native
MIT License
313 stars 26 forks source link

Open copied file on external app #49

Closed pushingpop closed 2 years ago

pushingpop commented 2 years ago

Feature Is there a way to get (dir: 'audio' | 'downloads' | 'images' | 'video') path?

Motivation I need to move the file to images path, then open this image. If possible add an uri response from cpExternal, or expose this as a Directory constants.

alpha0010 commented 2 years ago

Difficult to decide how to do so properly, especially since system security prevents read/write on arbitrary locations (except if device is rooted). I can return the path:

Android and iOS both have various ways to share data between apps, especially when both apps can coordinate. I would prefer avoiding adding too much native code, if it is not actually of use.

How are you handling communication between apps? Is there a specific native API that would be useful to have access to via this library?

alpha0010 commented 2 years ago

Inactive, closing. Please open a new issue with further details, if you are still interested.