Skip to content

Commit b110113

Browse files
author
Kenneth Schnall
authored
feat(android): expose REQUEST_LAUNCH codes (react-native-image-picker#1713)
This allows android users to natively handle selected media for processing
1 parent 39eb402 commit b110113

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

android/src/main/java/com/imagepicker/ImagePickerModule.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
public class ImagePickerModule extends ReactContextBaseJavaModule implements ActivityEventListener {
2424
static final String NAME = "ImagePickerManager";
2525

26-
static final int REQUEST_LAUNCH_IMAGE_CAPTURE = 13001;
27-
static final int REQUEST_LAUNCH_VIDEO_CAPTURE = 13002;
28-
static final int REQUEST_LAUNCH_LIBRARY = 13003;
26+
// Public to let consuming apps hook into the image picker response
27+
public static final int REQUEST_LAUNCH_IMAGE_CAPTURE = 13001;
28+
public static final int REQUEST_LAUNCH_VIDEO_CAPTURE = 13002;
29+
public static final int REQUEST_LAUNCH_LIBRARY = 13003;
2930

3031
private Uri fileUri;
3132

0 commit comments

Comments
 (0)