Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/khalisafkari/react-native-bigimageviewer

react native Big image viewer supporting pan and zoom
https://github.com/khalisafkari/react-native-bigimageviewer

bigimageviewer image imageview react-native react-native-image

Last synced: about 2 months ago
JSON representation

react native Big image viewer supporting pan and zoom

Awesome Lists containing this project

README

        

# react-native-bigimageviewer

react native Big image viewer supporting pan and zoom, with very little memory usage and full
featured image loading choices. Powered by
[Glide](https://github.com/bumptech/glide)

## Installation

```sh
yarn add react-native-bigimageviewer
```

```sh
// android/build.gradle

allprojects {
repositories {
maven {
url "http://dl.bintray.com/piasy/maven"
}
...
}
}
```
Note: please put this download url at the first of your repositories part, otherwise, gradle may search in wrong place.

## demo

| | | |
|:-------------------------:|:-------------------------:|:-------------------------:|
|1 | 2|3|

## Usage

```js
import BannerView from 'react-native-bigimageviewer';
// ...

```

## props

```typescript

type resizeMode =
| 'center'
| 'centerCrop'
| 'centerInside'
| 'fitCenter'
| 'fitEnd'
| 'fitStart'
| 'fitXY'
| 'start';

interface imageProps {
source: string;
loading?: boolean;
resizeMode?: resizeMode;
style?: StyleProp;
onCacheHit?: Function;
onCacheMiss?: Function;
onStart?: Function;
onProgress?: Function;
onFinish?: Function;
onSuccess?: Function;
onFail?: Function;
}

```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License
MIT