The Beautiful Image component that supports fadeIn animation and shows placeholderSource if the main source can't be loaded. More will be implemented.
Objective-C JavaScript Python Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example Add sample and update image in Readme Apr 2, 2017
LICENSE Initial commit Apr 2, 2017
README.md Update README Apr 2, 2017
index.js Init Apr 2, 2017
package.json 1.0.4 Apr 2, 2017
screenshot.gif Update README Apr 2, 2017

README.md

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