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

https://github.com/wrathchaos/react-native-easy-cached-image

Easy Peasy Cached Image for React Native.
https://github.com/wrathchaos/react-native-easy-cached-image

Last synced: 3 months ago
JSON representation

Easy Peasy Cached Image for React Native.

Awesome Lists containing this project

README

          

# React Native Easy Cached Image

Easy Peasy Cached Image for React Native with Expo.

[![npm version](https://img.shields.io/npm/v/react-native-easy-cached-image.svg)](https://www.npmjs.com/package/react-native-easy-cached-image)
[![npm](https://img.shields.io/npm/dt/react-native-easy-cached-image.svg)](https://www.npmjs.com/package/react-native-easy-cached-image)
![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)


React Native Easy Cached Image

# Important Warning :

#### This library only works with Expo! Not working with Pure React Native.

## Installation for Expo

Add the dependency:

```ruby
npm i react-native-easy-cached-image
```

## Basic Usage

```ruby

```

## Peer Dependencies

##### IMPORTANT! You need install them. This is an EXPO based library, you cannot use it without Expo for now.

```
"expo": ">= 27.x",
"react": ">= 16.x",
"crypto-js": ">= 3.x.x",
"react-native": ">= 0.55.x"
```

### Example Application

- I shared the example project to check what it is:
[check the code](examples/App.js), and yes! :) all of the images, screenshots are directly taken
from this example. Of course, you can simply clone the project and run the example on your own environment.

### Configuration - Props

| Property | Type | Default | Description |
| ----------- | ------ | --------- | ------------------------------------------------------------------------------- |
| source | object | undefined | use this to implement your own source of image, it could be URI or local image. |
| Image props | any | non | it can use any prop what Image component use |

## Author

FreakyCoder, kurayogun@gmail.com

## License

React Native Easy Cached Image Library is available under the MIT license. See the LICENSE file for more info.