From caa95df44a8e7f8bd06d2e4a225d3901e5f36cdc Mon Sep 17 00:00:00 2001 From: Wojciech Lewicki Date: Tue, 30 Jul 2024 12:45:11 +0200 Subject: [PATCH] Revert "fix: use kotlin compatible getType (#507)" This reverts commit 05ad6b4320625f875f81afd3bcc7cc3a91244de4. --- .../com/th3rdwave/safeareacontext/SafeAreaViewShadowNode.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewShadowNode.kt b/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewShadowNode.kt index c1103ac1..a57fa38c 100644 --- a/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewShadowNode.kt +++ b/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewShadowNode.kt @@ -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 } @@ -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 }