Skip to content

Commit

Permalink
Kotlinize for declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
tboba committed Sep 6, 2023
1 parent 0545a7e commit 74c4f96
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions android/src/main/java/com/swmansion/rnscreens/Screen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,7 @@ class Screen constructor(context: ReactContext?) : FabricEnabledViewGroup(contex
}

val headerConfig: ScreenStackHeaderConfig?
get() {
for (child in children) {
if (child is ScreenStackHeaderConfig) {
return child
}
}

return null
}
get() = children.find { it is ScreenStackHeaderConfig } as? ScreenStackHeaderConfig

/**
* While transitioning this property allows to optimize rendering behavior on Android and provide
Expand Down

0 comments on commit 74c4f96

Please sign in to comment.