|
@@ -190,7 +190,6 @@ public class BottomTabActivity extends BaseReactActivity implements AHBottomNavi
|
190
|
190
|
}
|
191
|
191
|
}
|
192
|
192
|
|
193
|
|
- @Override
|
194
|
193
|
public void setTabBadge(ReadableMap params) {
|
195
|
194
|
// Badge comes across as int, but if it's 0 clear the notification
|
196
|
195
|
int badgeCount = params.getInt(KEY_BADGE);
|
|
@@ -205,13 +204,11 @@ public class BottomTabActivity extends BaseReactActivity implements AHBottomNavi
|
205
|
204
|
mBottomNavigation.setNotification(badge, tabIndex);
|
206
|
205
|
}
|
207
|
206
|
|
208
|
|
- @Override
|
209
|
207
|
public void switchToTab(ReadableMap params) {
|
210
|
208
|
int tabIndex = params.getInt(KEY_TAB_INDEX);
|
211
|
209
|
mBottomNavigation.setCurrentItem(tabIndex);
|
212
|
210
|
}
|
213
|
211
|
|
214
|
|
- @Override
|
215
|
212
|
public void toggleTabs(ReadableMap params) {
|
216
|
213
|
boolean hide = params.getBoolean(KEY_HIDDEN);
|
217
|
214
|
boolean animated = params.getBoolean(KEY_ANIMATED);
|