react-native-navigation的迁移库

BottomTabs.js 646B

1234567891011121314151617181920212223242526
  1. const { isEmpty } = require('lodash');
  2. class BottomTabs {
  3. /**
  4. * @property {string} [currentTabId]
  5. * @property {number} [currentTabIndex]
  6. * @property {boolean} [hidden]
  7. * @property {boolean} [animateHide]
  8. * @property {string} [testID]
  9. * @property {boolean} [drawUnder]
  10. */
  11. constructor(params) {
  12. if (isEmpty(params)) {
  13. return;
  14. }
  15. this.currentTabId = params.currentTabId;
  16. this.currentTabIndex = params.currentTabIndex;
  17. this.hidden = params.hidden;
  18. this.animateHide = params.animateHide;
  19. this.testID = params.testID;
  20. this.drawUnder = params.drawUnder;
  21. }
  22. }
  23. module.exports = BottomTabs;