diff --git a/android/src/main/java/com/reactnativecommunity/picker/ReactPickerManager.java b/android/src/main/java/com/reactnativecommunity/picker/ReactPickerManager.java index 8cf7eee9c..e1c71e23f 100644 --- a/android/src/main/java/com/reactnativecommunity/picker/ReactPickerManager.java +++ b/android/src/main/java/com/reactnativecommunity/picker/ReactPickerManager.java @@ -217,6 +217,17 @@ protected void addEventEmitters( picker.setOnFocusListener(eventEmitter); } + @Override + public void receiveCommand(@NonNull ReactPicker root, int commandId, @androidx.annotation.Nullable ReadableArray args) { + Map commands = getCommandsMap(); + if(commands == null) return; + for (Map.Entry entry : commands.entrySet()) { + if (commandId == entry.getValue()) { + receiveCommand(root, entry.getKey(), args); + } + } + } + @Override public void receiveCommand(@NonNull ReactPicker root, String commandId, @androidx.annotation.Nullable ReadableArray args) { Assertions.assertNotNull(root);