File tree Expand file tree Collapse file tree
android/src/main/java/com/th3rdwave/safeareacontext Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ class SafeAreaViewShadowNode : LayoutShadowNode() {
143143 override fun setPaddings (index : Int , padding : Dynamic ) {
144144 val spacingType = ViewProps .PADDING_MARGIN_SPACING_TYPES [index]
145145 mPaddings[spacingType] =
146- if (padding.getType() == ReadableType .Number ) padding.asDouble().toFloat() else Float .NaN
146+ if (padding.type == ReadableType .Number ) padding.asDouble().toFloat() else Float .NaN
147147 super .setPaddings(index, padding)
148148 mNeedsUpdate = true
149149 }
@@ -163,7 +163,7 @@ class SafeAreaViewShadowNode : LayoutShadowNode() {
163163 override fun setMargins (index : Int , margin : Dynamic ) {
164164 val spacingType = ViewProps .PADDING_MARGIN_SPACING_TYPES [index]
165165 mMargins[spacingType] =
166- if (margin.getType() == ReadableType .Number ) margin.asDouble().toFloat() else Float .NaN
166+ if (margin.type == ReadableType .Number ) margin.asDouble().toFloat() else Float .NaN
167167 super .setMargins(index, margin)
168168 mNeedsUpdate = true
169169 }
You can’t perform that action at this time.
0 commit comments