This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

react-native-component-fade

1.0.2 • Public • Published

react-native-component-fade npm version

A simple and lightweight React Native component that fades in it's child components

Installation

yarn add react-native-component-fade or npm install react-native-component-fade --save

Usage

import { Fade } from "react-native-component-fade";
 
const myFadeInComponent = () => (
  <FadeInView
    duration={750}
    style={{ alignItems: "center" }}
    onFadeComplete={() => alert("Fade animation complete")}
  >
    <Text>This text and component will fade in on mount</Text>
    <MyCustomComponent />
  </FadeInView>
);

Properties

Name Description Type
onFadeComplete Called when animation completes Function
duration Duration of the animation Number
style Additional styles Object

Package Sidebar

Install

npm i react-native-component-fade

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

57.7 kB

Total Files

6

Last publish

Collaborators

  • dalefrench