We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 798a1f0 commit d29dc7dCopy full SHA for d29dc7d
android/src/main/java/com/lodev09/truesheet/TrueSheetViewManager.kt
@@ -109,7 +109,7 @@ class TrueSheetViewManager : ViewGroupManager<TrueSheetView>() {
109
110
@ReactProp(name = "background")
111
fun setBackground(view: TrueSheetView, colorName: Double) {
112
- val color = runCatching { ColorPropConverter.getColor(colorName, view.context) }.getOrDefault(Color.WHITE)
+ val color = runCatching { ColorPropConverter.getColor(colorName, view.context) }.getOrNull() ?: Color.WHITE
113
view.setBackground(color)
114
}
115
0 commit comments