react-native-bounceable
v0.2.1
Published
A touchable bounce animation that can wrap any React Native view.
Downloads
58
Maintainers
Readme
Installation
To install:
npm install --save react-native-bounceable
Props
level: number
The maximum scale of the bounce animation (default: 1.1)onPress: function
An optional function to be called after a press
Example
import Bounceable from "react-native-bouceable";
render() {
return <Bounceable
onPress={()=>console.log("Pressed!")}
level={1.1}>
<View
style={{
width: 100,
padding:8
}}>
<Text>Click Me!</Text>
</View>
</Bounceable>
}