From 7859813eac5b1095c423570c85ec8c55fba3b623 Mon Sep 17 00:00:00 2001 From: Horcrux Date: Thu, 21 Apr 2016 16:10:38 +0800 Subject: [PATCH] none color fill path add clip --- Example/examples/Clipping.js | 22 +++++++++++++++++++--- ios/RNSVGPath.m | 4 ++++ 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Example/examples/Clipping.js b/Example/examples/Clipping.js index 6e0a5795..8cc4d1b3 100644 --- a/Example/examples/Clipping.js +++ b/Example/examples/Clipping.js @@ -3,8 +3,10 @@ import React, { } from 'react-native'; import Svg, { - GlipPath, + ClipPath, Defs, + RadialGradient, + Stop, Line, Rect, Text, @@ -18,12 +20,26 @@ class ClipPathExample extends Component{ height="100" width="100" > + + + + + + ; @@ -31,7 +47,7 @@ class ClipPathExample extends Component{ } class ClipRulePathExample extends Component{ - static title = 'Clip by set clip-path with a path data'; + static title = 'Clip a group with clipRule="evenodd"'; render() { return