Gravity: top - left - right - bottom
import { ClipRectView } from 'react-native-jjkit'
<ClipRectView {...props} >
<MyViewChild /> //View clipped
</ClipRectView>
//using animated value
Animated.createAnimatedComponent(ClipRectView)
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 |