diff --git a/android/src/main/java/com/wix/RNCameraKit/gallery/GalleryViewManager.java b/android/src/main/java/com/wix/RNCameraKit/gallery/GalleryViewManager.java index f6267ea..65c3647 100644 --- a/android/src/main/java/com/wix/RNCameraKit/gallery/GalleryViewManager.java +++ b/android/src/main/java/com/wix/RNCameraKit/gallery/GalleryViewManager.java @@ -32,8 +32,8 @@ public class GalleryViewManager extends SimpleViewManager { private final String CUSTOM_BUTTON_BCK_COLOR_KEY = "backgroundColor"; private final String SELECTION_SELECTED_IMAGE_KEY = "selectedImage"; private final String SELECTION_UNSELECTED_IMAGE_KEY = "unselectedImage"; - private final String SELECTION_POSITION_KEY = "position"; - private final String SELECTION_SIZE_KEY = "size"; + private final String SELECTION_POSITION_KEY = "imagePosition"; + private final String SELECTION_SIZE_KEY = "imageSizeAndroid"; private final String SELECTION_ENABLED_KEY = "enable"; /** diff --git a/src/CameraKitGalleryView.android.js b/src/CameraKitGalleryView.android.js index e08f80e..298d330 100644 --- a/src/CameraKitGalleryView.android.js +++ b/src/CameraKitGalleryView.android.js @@ -45,10 +45,10 @@ export default class CameraKitGalleryView extends Component { _.update(transformedProps, 'selection.selectedImage', (image) => resolveAssetSource(image).uri); } - const selectionPosition = _.get(transformedProps, 'selection.position'); + const selectionPosition = _.get(transformedProps, 'selection.imagePosition'); if (selectionPosition) { const positionCode = this.transformSelectedImagePosition(selectionPosition); - _.update(transformedProps, 'selection.position', (position) => positionCode); + _.update(transformedProps, 'selection.imagePosition', (position) => positionCode); } return