Android: rename selection props
This commit is contained in:
parent
e8351dc807
commit
ea139bfeff
|
@ -32,8 +32,8 @@ public class GalleryViewManager extends SimpleViewManager<GalleryView> {
|
|||
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";
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 <GalleryView {...transformedProps} onTapImage={this.onTapImage}/>
|
||||
|
|
Loading…
Reference in New Issue