@momo-kits/date-picker 0.0.44-beta.2 → 0.0.44-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -573,6 +573,7 @@ class DatePicker extends Component {
573
573
  headerStyle,
574
574
  iconClosePosition = 'right',
575
575
  iconType,
576
+ headerButtonStyle,
576
577
  } = this.props;
577
578
  return (
578
579
  <BottomPopupHeader
@@ -584,28 +585,9 @@ class DatePicker extends Component {
584
585
  buttonTitle={buttonTitle}
585
586
  onButtonPress={onButtonPress}
586
587
  style={[styles.header, headerStyle]}
588
+ headerButtonStyle={headerButtonStyle}
587
589
  />
588
590
  );
589
- // return (
590
- // <View style={styles.header}>
591
- // <TouchableOpacity
592
- // onPress={this.hide}
593
- // >
594
- // <Text style={styles.titleCancel}>
595
- // {titleCancel}
596
- // </Text>
597
- // </TouchableOpacity>
598
- // <Text style={styles.title}>
599
- // {title || placeholder}
600
- // </Text>
601
- // <TouchableOpacity onPress={this.finish}>
602
- // <Text style={styles.titleConfirm}>
603
- // {titleConfirm}
604
-
605
- // </Text>
606
- // </TouchableOpacity>
607
- // </View>
608
- // );
609
591
  }
610
592
 
611
593
  renderDescription = () => {
@@ -740,7 +722,7 @@ class DatePicker extends Component {
740
722
  }
741
723
 
742
724
  renderFooter() {
743
- const { titleFooter, renderFooter } = this.props;
725
+ const { titleFooter, renderFooter, footerButtonStyle } = this.props;
744
726
  return renderFooter ? (
745
727
  renderFooter()
746
728
  ) : (
@@ -752,6 +734,7 @@ class DatePicker extends Component {
752
734
  }}>
753
735
  <Button
754
736
  onPress={this.finish}
737
+ buttonStyle={[footerButtonStyle]}
755
738
  title={titleFooter || SwitchLanguage.confirm}
756
739
  type="primary"
757
740
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/date-picker",
3
- "version": "0.0.44-beta.2",
3
+ "version": "0.0.44-beta.3",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "dependencies": {},