react-native-fade-view
Cross fade effect for child components
Installation
npm install --save react-native-fade-view
Usage
;;; { let active = thisstate; return <FadeView active=active> <Text>loading...</Text> <Image onLoad= this /> </FadeView> ; }
Properties
name | description | type | default |
---|---|---|---|
animationDuration | Fade animation duration | Number | 225 |
active | Fade view state | Boolean | false |
removeHiddenSubviews | Remove invisible subviews | Boolean | true |
Example
git clone https://github.com/n4kz/react-native-fade-viewcd react-native-fade-view/examplenpm installreact-native run-ios # or run-android
Copyright and License
BSD License
Copyright 2017-2018 Alexander Nazarov. All rights reserved.