Skip to content

Instantly share code, notes, and snippets.

@reime005
Created December 10, 2020 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/6d717be8a4c5499e6718ddeee7f3db2f to your computer and use it in GitHub Desktop.
Save reime005/6d717be8a4c5499e6718ddeee7f3db2f to your computer and use it in GitHub Desktop.
import Animated from 'react-native-reanimated';
import Svg, { Circle as _Circle, Defs, ClipPath } from 'react-native-svg';
const Circle = Animated.createAnimatedComponent(_Circle);
render() {
return(
<Svg>
<Defs>
<ClipPath id="clip">
<Circle cy="40" animatedProps={firstProps} />
<Circle cy="40" animatedProps={secondProps} />
</ClipPath>
</Defs>
...
</Svg>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment