Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 799 Bytes

ClipRect.md

File metadata and controls

33 lines (21 loc) · 799 Bytes

Preview

Gravity: top - left - right - bottom

Usage

import { ClipRectView } from 'react-native-jjkit'

<ClipRectView {...props} >
     <MyViewChild /> //View clipped 
</ClipRectView>

//using animated value

 Animated.createAnimatedComponent(ClipRectView)

Props

Name description type default
gravity set the start of the Rect String "top"
inset set inset relative to gravity, y(top,bottom) x(left,right) Number 0
progress set the progress Number 0