react-native-navigation的迁移库

1234567891011121314151617181920212223242526
  1. class Button {
  2. /**
  3. * @property {string} id
  4. * @property {string} [testID]
  5. * @property {string} [title]
  6. * @property {string} [buttonColor]
  7. * @property {string} [showAsAction]
  8. * @property {int} [buttonFontWeight]
  9. * @property {boolean} [disableIconTint]
  10. * @property {boolean} [disabled]
  11. */
  12. constructor(params) {
  13. this.id = params.id;
  14. this.testID = params.testID;
  15. this.title = params.title;
  16. this.buttonColor = params.buttonColor;
  17. this.showAsAction = params.showAsAction;
  18. this.buttonFontWeight = params.buttonFontWeight;
  19. this.buttonFontSize = params.buttonFontSize;
  20. this.disableIconTint = params.disableIconTint;
  21. this.disabled = params.disabled;
  22. }
  23. }
  24. module.exports = Button;