From 60ee25c554c4cfe0a4c1d55c9e58bc3b0023e844 Mon Sep 17 00:00:00 2001 From: Anshul Agarwal Date: Tue, 3 May 2016 21:49:01 -0700 Subject: [PATCH] Correct activity request code Summary: Change activity request code to IMAGE_PICKER_REQUEST in currentActivity.startActivityForResult(chooserIntent, IMAGE_PICKER_REQUEST); Closes https://github.com/facebook/react-native/pull/7347 Differential Revision: D3257586 fb-gh-sync-id: fc92fb0bd3a66371fac22234b8a8b693a23fbf24 fbshipit-source-id: fc92fb0bd3a66371fac22234b8a8b693a23fbf24 --- docs/NativeModulesAndroid.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/NativeModulesAndroid.md b/docs/NativeModulesAndroid.md index df109c9e5..06f9fec53 100644 --- a/docs/NativeModulesAndroid.md +++ b/docs/NativeModulesAndroid.md @@ -376,7 +376,7 @@ public class ImagePickerModule extends ReactContextBaseJavaModule implements Act final Intent chooserIntent = Intent.createChooser(galleryIntent, "Pick an image"); - currentActivity.startActivityForResult(chooserIntent, PICK_IMAGE); + currentActivity.startActivityForResult(chooserIntent, IMAGE_PICKER_REQUEST); } catch (Exception e) { mPickerPromise.reject(E_FAILED_TO_SHOW_PICKER, e); mPickerPromise = null;