FIXME: ImageSourcePropType type define bug background image options
Optionalfilenamesave image name
Optionalmaxsince 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
Optionalqualityimage quality 0-100, 100 is best quality. If you want the quality to have more effect, try to set the image export format to the compressible format jpg. see #159
Optionalsavesave image format
text options
watermarkTexts: [
{
text: 'hello world',
positionOptions: {
X: 10,
Y: 10,
// or
// position: Position.center
},
style: {
color: '#aacc22',
fontName: 'Arial',
fontSize: 12,
shadowStyle: {
dx: 10,
dy: 10,
radius: 10,
color: '#aacc22'
},
textBackgroundStyle: {
paddingX: 10,
paddingY: 10,
type: TextBackgroundType.stretchX,
color: '#aacc22'
},
underline: true,
strikeThrough: true,
textAlign: 'left',
italic: true,
//or
// skewX: 45,
bold: true,
rotate: 45
}
}]
Options for text watermark
Example