FIXME: ImageSourcePropType type define bug
background image options
backgroundImage: {
src: require('./images/bg.png'),
scale: 0.5,
rotate: 45,
alpha: 0.5
}
Optional
filenamesave image name
filename: 'test'
Optional
maxsince 1.2.0
max image size see #49 #42
android only
need RN version >= 0.60.0, fresco MaxBitmapSize
ImagePipelineConfig.Builder.experiment().setMaxBitmapSize()
, see #49
2048
maxSize: 2048
Optional
qualityimage quality 0-1
1
quality: 1
Optional
savesave image format
jpg
saveFormat: ImageFormat.jpg
Optional
watermark1.1.0
use watermarkImages instead
watermark image options
watermarkImage: {
src: require('./images/logo.png'),
scale: 0.5,
rotate: 45,
alpha: 0.5
}
watermark images
watermarkImages: [
{
src: require('./images/logo.png'),
scale: 0.5,
rotate: 45,
alpha: 0.5,
position: {
X: 10,
Y: 10,
// or
position: Position.center
}
}]
Optional
watermark1.1.0
use watermarkImages instead
watermark position options
watermarkPositions: {
X: 10,
Y: 10,
// or
position: Position.center
}
use watermarkImages instead
Generated using TypeDoc
Description
Text options for image watermark
Example