Skip to content

Commit

Permalink
(android) fix resolving external storage paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ivpusic committed Mar 6, 2017
1 parent f340f35 commit c483a3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ public static String getRealPathFromURI(final Context context, final Uri uri) {
final String[] split = docId.split(":");
final String type = split[0];

if ("primary".equalsIgnoreCase(type)) {
return Environment.getExternalStorageDirectory() + "/" + split[1];
}

// TODO handle non-primary volumes
return Environment.getExternalStorageDirectory() + "/" + split[1];
}
// DownloadsProvider
else if (isDownloadsDocument(uri)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class MainApplication extends Application implements ReactApplication {

private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
protected boolean getUseDeveloperSupport() {
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-image-crop-picker",
"version": "0.12.6",
"version": "0.12.7",
"description": "Select single or multiple images, with croping option",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit c483a3f

Please sign in to comment.