react-native-navigation的迁移库

ScreenParams.java 482B

1234567891011121314151617181920
  1. package com.reactnativenavigation.params;
  2. import android.graphics.drawable.Drawable;
  3. import java.util.List;
  4. public class ScreenParams extends BaseScreenParams {
  5. public String tabLabel;
  6. public Drawable tabIcon;
  7. public List<PageParams> topTabParams;
  8. public boolean hasTopTabs() {
  9. return topTabParams != null && !topTabParams.isEmpty();
  10. }
  11. public FabParams getFab() {
  12. return hasTopTabs() ? topTabParams.get(0).fabParams : fabParams;
  13. }
  14. }