diff --git a/android/src/main/java/com/swmansion/rnscreens/Screen.kt b/android/src/main/java/com/swmansion/rnscreens/Screen.kt index 68956f02bc..7bb5ac5269 100644 --- a/android/src/main/java/com/swmansion/rnscreens/Screen.kt +++ b/android/src/main/java/com/swmansion/rnscreens/Screen.kt @@ -441,7 +441,7 @@ class Screen( if (stackPresentation !== StackPresentation.FORM_SHEET || background == null) { return } - (background as MaterialShapeDrawable?)?.let { + (background as? MaterialShapeDrawable?)?.let { val resolvedCornerRadius = PixelUtil.toDIPFromPixel(sheetCornerRadius) it.shapeAppearanceModel = ShapeAppearanceModel