@dfeidao/fd-m000014
v4.6.201906271427
Published
水印
Downloads
4
Maintainers
Readme
Installation
yarn add --dev @dfeidao/fd-m000014
fd-m000014 水印
必须传入 rotate,content,opacity,width,height
import ImageViewer from '@dfeidao/fd-m000014';
<Watermark
width={160}
height={40}
content={
<View style={{ width: 150, height: 30 }}>
<Text style={{
fontSize: 20,
textAlign: 'center'
}}>这是水印aaaaaa</Text>
</View>}
rotate={340}
opacity={0.2}
>
<TouchableOpacity onPress={() => {
Alert.alert('11111111');
}} style={{ width: 100, height: 50, backgroundColor: '#4b9dfa', marginTop: 80, marginLeft: 120 }}>
</TouchableOpacity>
<View style={{ backgroundColor: 'red', height: 200 }}><Text>gdfgdgdjgh</Text></View>
</Watermark>
Installation
yarn add --dev @dfeidao/fd-m000014
Attributes
rotate: number;
旋转角度,取值范围0-360
content: JSX.Element;
内容
opacity: number;
透明度,取值范围0-1
width: number;
水印宽度
height: number;
水印高度