Skip to content

Commit

Permalink
Revert "fix: use kotlin compatible getType (#507)" (#515)
Browse files Browse the repository at this point in the history
This reverts commit 05ad6b4.
  • Loading branch information
WoLewicki authored Jul 30, 2024
1 parent f8c311e commit c29b877
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

1 comment on commit c29b877

@kesha-antonov
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please release this fix

Please sign in to comment.