Skip to content

Commit 5e3f2bd

Browse files
Move class definition to top
1 parent 785038d commit 5e3f2bd

File tree

1 file changed

+6
-6
lines changed
  • packages/react-native-bottom-tabs/android/src/main/java/com/rcttabview

1 file changed

+6
-6
lines changed

packages/react-native-bottom-tabs/android/src/main/java/com/rcttabview/RCTTabView.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ import com.google.android.material.navigation.NavigationBarView.LABEL_VISIBILITY
3434
import com.google.android.material.navigation.NavigationBarView.LABEL_VISIBILITY_UNLABELED
3535
import com.google.android.material.transition.platform.MaterialFadeThrough
3636

37+
class ExtendedBottomNavigationView(context: Context) : BottomNavigationView(context) {
38+
override fun getMaxItemCount(): Int {
39+
return 1_000
40+
}
41+
}
42+
3743
class ReactBottomNavigationView(context: Context) : LinearLayout(context) {
3844
private var bottomNavigation = ExtendedBottomNavigationView(context)
3945
val layoutHolder = FrameLayout(context)
@@ -464,9 +470,3 @@ class ReactBottomNavigationView(context: Context) : LinearLayout(context) {
464470
uiModeConfiguration = newConfig?.uiMode ?: uiModeConfiguration
465471
}
466472
}
467-
468-
class ExtendedBottomNavigationView(context: Context) : BottomNavigationView(context) {
469-
override fun getMaxItemCount(): Int {
470-
return 1_000
471-
}
472-
}

0 commit comments

Comments
 (0)