We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8aa4aa commit 3817bd0Copy full SHA for 3817bd0
packages/react-native-bottom-tabs/android/src/main/java/com/rcttabview/RCTTabView.kt
@@ -423,7 +423,7 @@ class ReactBottomNavigationView(context: Context) : LinearLayout(context) {
423
424
private fun updateTintColors() {
425
// First let's check current item color.
426
- val currentItemTintColor = items.first { it.key == selectedItem }.activeTintColor
+ val currentItemTintColor = items.firstOrNull { it.key == selectedItem }?.activeTintColor
427
428
// getDefaultColor will always return a valid color but to satisfy the compiler we need to check for null
429
val colorPrimary = currentItemTintColor ?: activeTintColor ?: Utils.getDefaultColorFor(
0 commit comments