From 9174841512b78db2defa0bac9386803913d0f842 Mon Sep 17 00:00:00 2001 From: adriancleung Date: Tue, 9 Mar 2021 11:36:59 -0700 Subject: [PATCH] fix: add CircleFlip type for Android --- android/src/main/java/com/react/rnspinkit/RNSpinkit.java | 1 + android/src/main/java/com/react/rnspinkit/RNSpinkitView.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/android/src/main/java/com/react/rnspinkit/RNSpinkit.java b/android/src/main/java/com/react/rnspinkit/RNSpinkit.java index deeee2b..2e6f67a 100644 --- a/android/src/main/java/com/react/rnspinkit/RNSpinkit.java +++ b/android/src/main/java/com/react/rnspinkit/RNSpinkit.java @@ -21,6 +21,7 @@ import com.github.ybq.android.spinkit.style.FadingCircle; import com.github.ybq.android.spinkit.style.FoldingCube; import com.github.ybq.android.spinkit.style.Pulse; +import com.github.ybq.android.spinkit.style.RotatingCircle; import com.github.ybq.android.spinkit.style.RotatingPlane; import com.github.ybq.android.spinkit.style.ThreeBounce; import com.github.ybq.android.spinkit.style.WanderingCubes; diff --git a/android/src/main/java/com/react/rnspinkit/RNSpinkitView.java b/android/src/main/java/com/react/rnspinkit/RNSpinkitView.java index 1f8a7ce..5e340ba 100644 --- a/android/src/main/java/com/react/rnspinkit/RNSpinkitView.java +++ b/android/src/main/java/com/react/rnspinkit/RNSpinkitView.java @@ -15,6 +15,7 @@ import com.github.ybq.android.spinkit.style.FadingCircle; import com.github.ybq.android.spinkit.style.FoldingCube; import com.github.ybq.android.spinkit.style.Pulse; +import com.github.ybq.android.spinkit.style.RotatingCircle; import com.github.ybq.android.spinkit.style.RotatingPlane; import com.github.ybq.android.spinkit.style.ThreeBounce; import com.github.ybq.android.spinkit.style.WanderingCubes; @@ -79,6 +80,8 @@ private Sprite getSprite(String spinnerType) { return new ThreeBounce(); case "Circle": return new Circle(); + case "CircleFlip": + return new RotatingCircle(); case "FoldingCube": // Add scale factor to prevent clipping Sprite sprite = new FoldingCube();