From 001835b7c1eb8e9ceb0de2eef97ccc168506b3ad Mon Sep 17 00:00:00 2001 From: Horcrux Date: Fri, 26 Aug 2016 10:15:59 +0800 Subject: [PATCH] fix crash when the text letter reaches the end of text-path --- Example/examples/Text.js | 12 ++++-------- ios/Text/RNSVGBezierPath.m | 6 +++++- ios/Text/RNSVGText.m | 6 ++++++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Example/examples/Text.js b/Example/examples/Text.js index d45c09fb..68d8004d 100644 --- a/Example/examples/Text.js +++ b/Example/examples/Text.js @@ -122,14 +122,10 @@ class TextPath extends Component{ render() { const path = ` - M 0 20 - h 10 - C 20 10 30 0 40 10 - C 50 20 60 30 70 20 - C 80 10 90 10 90 10 - C 110 20 120 30 120 20 - C 140 10 150 10 150 10 - a 50 50 0 1 1 20 110 + M 10 20 + C 20 10 30 0 40 10 + C 50 20 60 30 70 20 + C 80 10 90 10 90 10 `; return