File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export class BottomNavigationBar extends BottomNavigationBarBase {
156
156
// TODO: this is for he v8 runtime. Should not have to need this setTimeout(), find better way.
157
157
this . selectTabNative ( this . selectedTabIndex ) ;
158
158
setTimeout ( ( ) => {
159
- this . nativeViewProtected . selectedItem = this . nativeViewProtected . items [ this . selectedTabIndex ] ;
159
+ this . nativeViewProtected . selectedItem = this . nativeViewProtected . items . objectAtIndex ( this . selectedTabIndex ) ;
160
160
} , 0 ) ;
161
161
}
162
162
@@ -165,9 +165,9 @@ export class BottomNavigationBar extends BottomNavigationBarBase {
165
165
return ;
166
166
}
167
167
// ios impl does not trigger delegates!
168
- const itemToSelect = this . nativeViewProtected . items [ index ] ;
168
+ const itemToSelect = this . nativeViewProtected . items . objectAtIndex ( index ) ;
169
169
if ( this . _delegate . bottomNavigationBarShouldSelectItem ( this . nativeViewProtected , itemToSelect ) ) {
170
- this . nativeViewProtected . selectedItem = this . nativeViewProtected . items [ index ] ;
170
+ this . nativeViewProtected . selectedItem = this . nativeViewProtected . items . objectAtIndex ( index ) ;
171
171
this . _delegate . bottomNavigationBarDidSelectItem ( this . nativeViewProtected , itemToSelect ) ;
172
172
this . selectedTabIndex = index ;
173
173
}
You can’t perform that action at this time.
0 commit comments