@airship/rn-components
Version:
React Native components, from basic inputs to animated wrappers, created by Airship to build quality apps.
37 lines (36 loc) • 790 B
TypeScript
import React from 'react';
import { ViewStyle } from 'react-native';
declare type Props = {
/**
* auto-trigger fade-in?
*/
triggerFade?: boolean;
/**
* starting opacity value (0 - 1.00)
*/
opacityStart?: number;
/**
* ending opacity value (0 - 1.00)
*/
opacityEnd?: number;
/**
* animation duration (in ms)
*/
duration?: number;
/**
* delay before animation start (in ms)
*/
delay?: number;
style?: ViewStyle;
/**
* callback function called once fadeIn animation completes
*/
onEnd?: () => void;
/**
* should this animation repeat?
*/
loop?: boolean;
children?: React.ReactNode;
};
declare const AnimatedFade: React.FC<Props>;
export default AnimatedFade;