1.0.3 • Published 5 years ago
react-native-scale-image-background v1.0.3
react-native-scale-image-background
react native 根据样式(width、maxWidth、minWidth、height、maxHeight、minHeight)自动适配等比缩放背景图片,且无需都设置宽高度
安装
npm install react-native-scale-image-background --save
属性/方法
parameter | type | required | description |
---|---|---|---|
imageRef | func | no | 获取图片ref |
react native image 所有属性/方法
注意
仅属性resizeMode为stretch启动缩放,其他resizeMode属性值效果不变
源码
https://github.com/thisXY/react-native-scale-image-background