From bd18343e60f9bc2ea5abf2fda3ce31e2d850174d Mon Sep 17 00:00:00 2001 From: dlowder-salesforce Date: Thu, 3 Aug 2017 14:50:31 -0700 Subject: [PATCH 1/2] Podspec support for Apple TV --- RNSVG.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNSVG.podspec b/RNSVG.podspec index 4a620a52..1446a83a 100644 --- a/RNSVG.podspec +++ b/RNSVG.podspec @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/magicismight/react-native-svg.git', :tag => "v#{s.version}" } s.source_files = 'ios/**/*.{h,m}' s.requires_arc = true - s.platform = :ios, "7.0" + s.platforms = { :ios => "8.0", :tvos => "9.2" } s.dependency 'React' end From a2c1e0e4f3d24430bfc773c84a2ed15fbcd991c7 Mon Sep 17 00:00:00 2001 From: Petar Ivanov Date: Wed, 16 Aug 2017 16:49:43 -0700 Subject: [PATCH 2/2] fix broken multi touch for Android (#432) --- android/src/main/java/com/horcrux/svg/SvgView.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/src/main/java/com/horcrux/svg/SvgView.java b/android/src/main/java/com/horcrux/svg/SvgView.java index f2ccb1b3..aede2868 100644 --- a/android/src/main/java/com/horcrux/svg/SvgView.java +++ b/android/src/main/java/com/horcrux/svg/SvgView.java @@ -148,6 +148,7 @@ public class SvgView extends View { // this gesture. dispatch(ev, TouchEventType.END); mTargetTag = -1; + mGestureStartTime = TouchEvent.UNSET; } else if (action == MotionEvent.ACTION_MOVE) { // Update pointer position for current gesture dispatch(ev, TouchEventType.MOVE); @@ -157,8 +158,6 @@ public class SvgView extends View { } else if (action == MotionEvent.ACTION_POINTER_UP) { // Exactly onw of the pointers goes up dispatch(ev, TouchEventType.END); - mTargetTag = -1; - mGestureStartTime = TouchEvent.UNSET; } else if (action == MotionEvent.ACTION_CANCEL) { dispatchCancelEvent(ev); mTargetTag = -1;