You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BackgroundStyleApplicator.kt
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,10 @@ public object BackgroundStyleApplicator {
148
148
149
149
@JvmStatic
150
150
publicfunsetOutlineColor(view:View, @ColorInt outlineColor:Int?): Unit {
151
+
if (ViewUtil.getUIManagerType(view) !=UIManagerType.FABRIC) {
152
+
return
153
+
}
154
+
151
155
val outline = ensureOutlineDrawable(view)
152
156
if (outlineColor !=null) {
153
157
outline.outlineColor = outlineColor
@@ -158,6 +162,10 @@ public object BackgroundStyleApplicator {
158
162
159
163
@JvmStatic
160
164
publicfunsetOutlineOffset(view:View, outlineOffset:Float): Unit {
165
+
if (ViewUtil.getUIManagerType(view) !=UIManagerType.FABRIC) {
166
+
return
167
+
}
168
+
161
169
val outline = ensureOutlineDrawable(view)
162
170
outline.outlineOffset = outlineOffset.dpToPx()
163
171
}
@@ -166,6 +174,10 @@ public object BackgroundStyleApplicator {
166
174
167
175
@JvmStatic
168
176
publicfunsetOutlineStyle(view:View, outlineStyle:OutlineStyle?): Unit {
177
+
if (ViewUtil.getUIManagerType(view) !=UIManagerType.FABRIC) {
178
+
return
179
+
}
180
+
169
181
val outline = ensureOutlineDrawable(view)
170
182
if (outlineStyle !=null) {
171
183
outline.outlineStyle = outlineStyle
@@ -176,6 +188,10 @@ public object BackgroundStyleApplicator {
176
188
177
189
@JvmStatic
178
190
publicfunsetOutlineWidth(view:View, width:Float): Unit {
191
+
if (ViewUtil.getUIManagerType(view) !=UIManagerType.FABRIC) {
0 commit comments