Skip to content

danijelgrabez/react-native-withPressAnimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example usage of withPressAnimation higher order component on Button component

React Native withPressAnimation

A higher order component which provides onPress animation for React Native component. Demo 👉Expo Snack.

Props which will be received from the component

  • onPress
  • disabled

Usage

import withPressAnimation from './path/to/file';

const Button = props => (
  ...
)

export default withPressAnimation(Button);

Releases

No releases published

Packages

No packages published