secullum-react-native-ui 4.16.2-beta.1 → 4.16.2-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.
|
@@ -17,12 +17,11 @@ export interface RangeDatePickerState {
|
|
|
17
17
|
showStartDateModal: boolean;
|
|
18
18
|
count: number;
|
|
19
19
|
}
|
|
20
|
-
export declare class RangeDatePicker extends React.
|
|
20
|
+
export declare class RangeDatePicker extends React.PureComponent<RangeDatePickerProperties, RangeDatePickerState> {
|
|
21
21
|
state: RangeDatePickerState;
|
|
22
22
|
private calendarRef;
|
|
23
23
|
componentWillMount(): void;
|
|
24
24
|
componentWillUnmount(): void;
|
|
25
|
-
shouldComponentUpdate(nextProps: Readonly<RangeDatePickerProperties>): boolean;
|
|
26
25
|
handleClick: (event: MouseEvent) => void;
|
|
27
26
|
handleDatePickerPress: () => void;
|
|
28
27
|
handleRangeDateConfirm: (ranges: SelectedRanges) => void;
|
|
@@ -11,7 +11,7 @@ const layout_1 = require("../modules/layout");
|
|
|
11
11
|
require("react-date-range/dist/styles.css");
|
|
12
12
|
const react_native_1 = require("react-native");
|
|
13
13
|
require("../../styles/RangeDatePicker.css");
|
|
14
|
-
class RangeDatePicker extends React.
|
|
14
|
+
class RangeDatePicker extends React.PureComponent {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
17
|
this.state = {
|
|
@@ -85,11 +85,6 @@ class RangeDatePicker extends React.Component {
|
|
|
85
85
|
componentWillUnmount() {
|
|
86
86
|
document.removeEventListener('mousedown', this.handleClick, false);
|
|
87
87
|
}
|
|
88
|
-
shouldComponentUpdate(nextProps) {
|
|
89
|
-
console.log('teste');
|
|
90
|
-
return (nextProps.startDate !== this.props.startDate ||
|
|
91
|
-
nextProps.endDate !== this.props.endDate);
|
|
92
|
-
}
|
|
93
88
|
render() {
|
|
94
89
|
const { label, startDate, endDate, style, nativeID } = this.props;
|
|
95
90
|
const { showStartDateModal } = this.state;
|