react-native-navigation的迁移库

TitleBarLeftButtonParams.java 686B

123456789101112131415161718192021222324
  1. package com.reactnativenavigation.params;
  2. import com.balysv.materialmenu.MaterialMenuDrawable;
  3. public class TitleBarLeftButtonParams extends TitleBarButtonParams {
  4. public MaterialMenuDrawable.IconState iconState;
  5. public boolean overrideBackPressInJs;
  6. public TitleBarLeftButtonParams(TitleBarButtonParams params) {
  7. icon = params.icon;
  8. color = params.color;
  9. eventId = params.eventId;
  10. enabled = params.enabled;
  11. }
  12. public boolean isBackButton() {
  13. return eventId.equals("back");
  14. }
  15. public void setOverrideBackPressInJs(boolean overrideBackPressInJs) {
  16. this.overrideBackPressInJs = overrideBackPressInJs;
  17. }
  18. }