Skip to content

Commit

Permalink
Revert "fix: use kotlin compatible getType (#507)"
Browse files Browse the repository at this point in the history
This reverts commit 05ad6b4.
  • Loading branch information
WoLewicki committed Jul 30, 2024
1 parent f8c311e commit caa95df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class SafeAreaViewShadowNode : LayoutShadowNode() {
override fun setPaddings(index: Int, padding: Dynamic) {
val spacingType = ViewProps.PADDING_MARGIN_SPACING_TYPES[index]
mPaddings[spacingType] =
if (padding.getType() == ReadableType.Number) padding.asDouble().toFloat() else Float.NaN
if (padding.type == ReadableType.Number) padding.asDouble().toFloat() else Float.NaN
super.setPaddings(index, padding)
mNeedsUpdate = true
}
Expand All @@ -163,7 +163,7 @@ class SafeAreaViewShadowNode : LayoutShadowNode() {
override fun setMargins(index: Int, margin: Dynamic) {
val spacingType = ViewProps.PADDING_MARGIN_SPACING_TYPES[index]
mMargins[spacingType] =
if (margin.getType() == ReadableType.Number) margin.asDouble().toFloat() else Float.NaN
if (margin.type == ReadableType.Number) margin.asDouble().toFloat() else Float.NaN
super.setMargins(index, margin)
mNeedsUpdate = true
}
Expand Down

0 comments on commit caa95df

Please sign in to comment.