Skip to content

A touchable bounce animation that can wrap any React Native view.

License

Notifications You must be signed in to change notification settings

slavik0329/react-native-bounceable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>
}

About

A touchable bounce animation that can wrap any React Native view.

Resources

License

Stars

Watchers

Forks

Packages

No packages published