File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
android/src/main/java/com/th3rdwave/safeareacontext Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ class SafeAreaViewShadowNode : LayoutShadowNode() {
143
143
override fun setPaddings (index : Int , padding : Dynamic ) {
144
144
val spacingType = ViewProps .PADDING_MARGIN_SPACING_TYPES [index]
145
145
mPaddings[spacingType] =
146
- if (padding.type == ReadableType .Number ) padding.asDouble().toFloat() else Float .NaN
146
+ if (padding.getType() == ReadableType .Number ) padding.asDouble().toFloat() else Float .NaN
147
147
super .setPaddings(index, padding)
148
148
mNeedsUpdate = true
149
149
}
@@ -163,7 +163,7 @@ class SafeAreaViewShadowNode : LayoutShadowNode() {
163
163
override fun setMargins (index : Int , margin : Dynamic ) {
164
164
val spacingType = ViewProps .PADDING_MARGIN_SPACING_TYPES [index]
165
165
mMargins[spacingType] =
166
- if (margin.type == ReadableType .Number ) margin.asDouble().toFloat() else Float .NaN
166
+ if (margin.getType() == ReadableType .Number ) margin.asDouble().toFloat() else Float .NaN
167
167
super .setMargins(index, margin)
168
168
mNeedsUpdate = true
169
169
}
You can’t perform that action at this time.
0 commit comments