1.0.8 • Published 5 years ago

react-native-super-image v1.0.8

Weekly downloads
5
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago