-
类似于Facebook或LinkedIn的Image Viewer组件——react-native-image-fit,专为RN设计
资源介绍
React本机图像拟合
RN的ImageViewer组件
安装
$ npm install --save react-native-image-fit
或者
$ yarn add react-native-image-fit
用法
import { ImageViewer } from 'react-native-image-fit' ;
export const App = ( ) => (
< ImageViewer
disabled = { false } // by default
source = { require ( './photo.png' ) } // or { url: 'https://...' }
doubleTapEnabled = { true } // by default double tap will zoom image