LogoCraftReactNative
Components

PressableScale

A pressable component that provides scaling animation feedback when pressed.

Installation

npx @craftreactnative/ui add PressableScale

Usage

Screen.tsx
import { PressableScale } from '@/craftrn-ui/components/PressableScale';
 
export const Screen = () => (
  <PressableScale>
    <Text>Press me for scale effect</Text>
  </PressableScale>
);

Props

PropTypeDefault
children
ReactNode
-
animationConfig?
AnimationConfig
-
pressProgress?
any
-

Dependencies

1 packages
react-native-reanimated

On this page