phuochau / react-native-beautiful-image

The Beautiful Image component that supports fadeIn animation and shows placeholderSource if the main source can't be loaded. More will be implemented.

Home Page:https://github.com/phuochau/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-beautiful-image

The Image component that supports fadeIn animation and shows placeholderSource if the main source can't be loaded. More will be implemented.

Sample

Installation

npm i --save react-native-beautiful-image

Please file an issue if you have any trouble!

Usage

import Image from 'react-native-beautiful-image';

....

<Image source={{ uri: 'https://avatars2.githubusercontent.com/u/1784243?v=3&s=460' }}
    placeholderSource={require('./placeholder.png'} />

Options

Supports all Image properties.

option Info
placeholderSource Show placeholderSource if the source can't be loaded.

Todo

  • Support more animations
  • Lazy Loading based on position in View.
  • TBD

License

MIT

About

The Beautiful Image component that supports fadeIn animation and shows placeholderSource if the main source can't be loaded. More will be implemented.

https://github.com/phuochau/

License:MIT License


Languages

Language:Objective-C 42.0%Language:JavaScript 29.9%Language:Python 15.6%Language:Java 12.5%