Skip to content

Commit 01a7521

Browse files
committed
fix: use optional chaining for 0.77 RC
1 parent 3e964c0 commit 01a7521

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class ReactBottomNavigationView(context: ReactContext) : FrameLayout(context) {
228228

229229
for (idx in 0 until icons.size()) {
230230
val source = icons.getMap(idx)
231-
val uri = source.getString("uri")
231+
val uri = source?.getString("uri")
232232
if (uri.isNullOrEmpty()) {
233233
continue
234234
}

0 commit comments

Comments
 (0)