uat-image-browser
v1.0.3
Published
查看大图
Downloads
12
Readme
封装react-native-image-zoom-viewer
安装依赖
- npm install --save react-native-image-zoom-viewer
- npm install --save react-native-image-browser
使用
```
import {ImageBrowser} from 'react-native-image-browser'
...
render(){
return (
...
<ImageBrowser ref={ref=>this.imgBrowser=ref}/>
...
)
}
需要查看大图是: this.imgBrowser.showWithImg(img:IImageInfo[]);
隐藏大图:this.imgBrowser.hide();
```