1.0.8 • Published 6 years ago

react-native-super-image v1.0.8

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

React Native Super Image

React Native Super Image: Image component with Super Powers!

  • Animation loading
  • Downloading and caching image in the background
  • Showing default background color before loading
  • Option to resize to 100% height or width, keeping image ratio

Install

yarn add react-native-super-image

Usage

import RNSuperImage from "react-native-super-image";
import expo from "expo";
const SuperImage = props => RNSuperImage({ ...props, expo });

Props

  • expo (required): The expo class
  • animated (optional): boolean. if set to true, the image fades in for 100ms once it's loaded
  • source (required): see react native image
  • style (optional): see react native image
  • width (optional): number or "auto". overwrites style-width. If set to auto, it calculates the width based on height and image ratio
  • heigh (optional)t: number or "auto". overwrites style-height. If set to auto, it calculates the height based on width and image ratio

Contribute

Contact me or submit an issue if you have ideas or want to collaborate / contribute

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago