Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shahen94/react-native-image-fit

Image Viewer component for RN, similar to Facebook or LinkedIn
https://github.com/shahen94/react-native-image-fit

image-viewer imageviewer-component react react-native

Last synced: 5 days ago
JSON representation

Image Viewer component for RN, similar to Facebook or LinkedIn

Awesome Lists containing this project

README

        

# react-native-image-fit
ImageViewer component for RN

### Installation

```sh
$ npm install --save react-native-image-fit
```
or

```sh
$ yarn add react-native-image-fit
```

### Usage

```javascript
import { ImageViewer } from 'react-native-image-fit';

export const App = () => (
null}
onPress={(opening) => console.log(opening)}
mainImageStyle={styles.someStyle}
zoomedImageStyle={styles.zoomedImageStyle}
mainImageProps={{
resizeMode: 'contain'
}}
zoomedImageProps={{
resizeMode: 'contain'
}}
/>
)
```

### ImageViewer Component example

![ezgif-3352117320](https://cloud.githubusercontent.com/assets/13334788/19832054/dc83a9f4-9e2a-11e6-9023-ccd80fb944b5.gif)

##
If this project was helpful to you, please
Buy Me A Coffee