react-native-bouncy-touchable
v1.0.0
Published
A bouncing touchable animated view
Downloads
9
Maintainers
Readme
react-native-bouncy-touchable
A bouncing touchable animated view
Table of Contents
Install
This project uses node and npm.
$ npm install react-native-bouncy-touchable
$ # OR
$ yarn add react-native-bouncy-touchable
Usage
export default class Button extends Component {
render () {
return (
<BouncyView
delay={60} // Animation delay in miliseconds
scale={1.1} // Max scale of animation
style={styles.button}
onPress={this.props.onPress}
>
<Text style={styles.buttonText}>
{this.props.children}
</Text>
</BouncyView>
)
}
}
Credits
Heavily based on react-native-bounceable
Contribute
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
MIT