Socket
Socket
Sign inDemoInstall

@expo/react-native-fade-in-image

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @expo/react-native-fade-in-image

Wrap Image components in <FadeIn> to have them fade in pleasantly when they finish loading


Version published
Weekly downloads
53
increased by130.43%
Maintainers
1
Install size
77.7 kB
Created
Weekly downloads
 

Readme

Source

@expo/react-native-fade-in-image

Wrap Image components in <FadeIn> to have them fade in pleasantly when they finish loading.

Installation

npm i @expo/react-native-fade-in-image --save

Usage

import React from 'react';
import { Image } from 'react-native';
import FadeIn from '@expo/react-native-fade-in-image';

const uri = 'https://d3lwq5rlu14cro.cloudfront.net/v1/AQ5jDS5SYyUkapWWEviV.png';

class FancyImage extends React.Component {
  render() {
    return (
      <FadeIn>
        <Image source={{ uri }} style={{ width: 162, height: 28 }} />
      </FadeIn>
    );
  }
}
props
  • style adds style to the image wrapper.
  • renderPlaceholderContent renders an element while loading the image, e.g. a spinner.
  • placeholderStyle adds style to the placeholder wrapper, default background color is #eee.

Example

See the example project source or try it out at https://exp.host/@community/fade-in-image-example

FAQs

Last updated on 06 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc