Skip to content

Commit

Permalink
feat: Support sharing of files from secondary storage i.e sd cards, o…
Browse files Browse the repository at this point in the history
…n Android (#754)

* Support sharing of files from secondary storage i.e sd cards, on Android.

* Update android/src/main/java/cl/json/RNSharePathUtil.java

Co-authored-by: Niclas Söderström <niclas.soderstrom@gmp-systems.com>
Co-authored-by: Mike Hardy <github@mikehardy.net>
  • Loading branch information
3 people committed Apr 8, 2020
1 parent af8335d commit df631e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/src/main/java/cl/json/RNSharePathUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static Uri compatUriFromFile(@NonNull final ReactContext context, @NonNul
break;
}
} catch (Exception e) {

System.out.println("RNSharePathUtil::compatUriFromFile ERROR " + e.getMessage());
}
}
return result;
Expand Down
3 changes: 2 additions & 1 deletion android/src/main/res/xml/share_download_paths.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="rnshare1" path="Download/" />
<cache-path name="rnshare2" path="/" />
</paths>
<root-path name="rnshare_sdcard" path="." />
</paths>

0 comments on commit df631e7

Please sign in to comment.