Skip to main content

PhotoTakingButton

Content

Button which is used as primary component of ImageCropPickerButton

Params

NameTypeRequiredDefault valueDescription
onPress() => voidTrue-On press callback
backgroundImageImageURISource or null or CropperImageFalseUndefinedSelected image which will be shown and used
iconImageURISourceFalseImageResources.cameraIcon which will be shown when image is not present and over the selected image
styleViewStyleFalseUndefinedStyle of button
iconStyleImageStyleFalseUndefinedStyle of icon
imageStyleImageStyleFalseUndefinedStyle of image
disabledbooleanFalseUndefinedIs button disabled

Usage example

    return (
<PhotoTakingButton
style={style}
iconStyle={iconStyle}
imageStyle={imageStyle}
onPress={onPress}
backgroundImage={image}
icon={icon}
disabled={disabled}
/>
);