Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Android dirs missing path (storage/ app id)? #335

@fbacker

Description

@fbacker

Version: 0.10.2

How to get application path on android? So I can put images and use?
e.g. /storage/emulated/0/Android/data/{my app name}

Having some issues with finding the correct path.
I'm using react-native-image-picker to grab a photo. Then I want to save this into the application directory. dirs.DocumentDir

react-native-image-picker places images in '/storage/emulated/0/Android/data/{my app id}/files/Pictures/' and these files I can find when browsing for files.

However when using dirs.DocumentDir i get '/data/user/0/{my app id}/files/'

This is no issue because I can move and copy the files. But on android when I want to display the image with dirs.DocumentDir + "myimage.jpg" nothing is displayed.
I can validate the file exists with RNFetchBlob.fs.exists

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions