react-native-morph-card 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -122,6 +122,8 @@ class MorphCardSourceView(context: Context) : ReactViewGroup(context) {
|
|
|
122
122
|
val hadClip = view.clipToOutline
|
|
123
123
|
var savedRounding: Any? = null
|
|
124
124
|
|
|
125
|
+
Log.d(TAG, "captureSnapshot: visiting ${view.javaClass.name} clipToOutline=$hadClip size=${view.width}x${view.height}")
|
|
126
|
+
|
|
125
127
|
// Disable outline clipping
|
|
126
128
|
if (hadClip) {
|
|
127
129
|
view.clipToOutline = false
|
|
@@ -133,15 +135,20 @@ class MorphCardSourceView(context: Context) : ReactViewGroup(context) {
|
|
|
133
135
|
val getHierarchy = view.javaClass.getMethod("getHierarchy")
|
|
134
136
|
val hierarchy = getHierarchy.invoke(view)
|
|
135
137
|
if (hierarchy != null) {
|
|
138
|
+
Log.d(TAG, "captureSnapshot: found hierarchy ${hierarchy.javaClass.name}")
|
|
136
139
|
val getRounding = hierarchy.javaClass.getMethod("getRoundingParams")
|
|
137
140
|
savedRounding = getRounding.invoke(hierarchy)
|
|
141
|
+
Log.d(TAG, "captureSnapshot: roundingParams=$savedRounding")
|
|
138
142
|
if (savedRounding != null) {
|
|
139
143
|
val roundingClass = Class.forName("com.facebook.drawee.generic.RoundingParams")
|
|
140
144
|
val setRounding = hierarchy.javaClass.getMethod("setRoundingParams", roundingClass)
|
|
141
145
|
setRounding.invoke(hierarchy, null)
|
|
146
|
+
Log.d(TAG, "captureSnapshot: disabled Fresco rounding")
|
|
142
147
|
}
|
|
143
148
|
}
|
|
144
|
-
} catch (
|
|
149
|
+
} catch (e: Exception) {
|
|
150
|
+
Log.d(TAG, "captureSnapshot: reflection skip for ${view.javaClass.simpleName}: ${e.javaClass.simpleName}")
|
|
151
|
+
}
|
|
145
152
|
|
|
146
153
|
if (hadClip || savedRounding != null) {
|
|
147
154
|
savedStates.add(ViewState(view, hadClip, savedRounding))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-morph-card",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Native card-to-modal morph transition for React Native. iOS App Store-style expand animation.",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|