react-native-fade-toogle
Simple fade in out for React Native, with callback and easing options
Install
Install the package:
$ npm i react-native-fade-toogle --save
Usage
var FadeToogle = ;var StyleSheet Text View Easing = React; var fadedemo = React;
Props
Prop | Type | Optional | Default | Description |
---|---|---|---|---|
fromOpacity | Number | Yes | Init opacity value | |
toOpacity | Number | Yes | Fade to opacity value | |
duration | Number | Yes | Fade effect duration value | |
component | Number | No | Animatable components, View, Text, Image | |
easing | Function | No | The fade effect | |
callback | Function | Yes | Callback function after toggle | |
isDisabled | Boolean | Yes | false | Enable or disable callback property function call |
style | style | Yes |
License
MIT.