Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ class DatePicker extends Component {
}

onPressMask() {
if (typeof this.props.onPressMask === 'function') {
this.props.onPressMask();
} else {
this.onPressCancel();
}
this.onPressCancel();
}

onPressCancel() {
Expand Down Expand Up @@ -380,7 +376,7 @@ class DatePicker extends Component {
<TouchableComponent
style={Style.datePickerMask}
activeOpacity={1}
underlayColor={'#00000077'}
underlayColor={'transparent'}
onPress={this.onPressMask}
>
<TouchableComponent
Expand Down
2 changes: 1 addition & 1 deletion style.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let style = StyleSheet.create({
flex: 1,
alignItems: 'flex-end',
flexDirection: 'row',
backgroundColor: '#00000077'
backgroundColor: 'transparent'
},
datePickerCon: {
backgroundColor: '#fff',
Expand Down