react-native-date-picker
Advanced tools
Comparing version 4.2.6 to 4.2.7
{ | ||
"name": "react-native-date-picker", | ||
"version": "4.2.6", | ||
"version": "4.2.7", | ||
"description": "A datetime picker for React Native. In-modal or inlined. Supports Android and iOS.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -23,3 +23,3 @@ import React from 'react' | ||
this.previousProps = props; | ||
this.previousProps = props; | ||
if (props.modal) { | ||
@@ -32,2 +32,4 @@ if (props.open && isClosed) { | ||
) | ||
} else if (!props.open && !isClosed) { | ||
NativeModules.RNDatePicker.closePicker() | ||
} | ||
@@ -34,0 +36,0 @@ return null |
@@ -50,3 +50,3 @@ import React from 'react' | ||
this.previousProps = props; | ||
this.previousProps = props; | ||
if (props.modal) { | ||
@@ -59,2 +59,4 @@ if (props.open && isClosed) { | ||
) | ||
} else if (!props.open && !isClosed) { | ||
NativeModules.RNDatePickerManager.closePicker() | ||
} | ||
@@ -77,3 +79,3 @@ return null | ||
} | ||
_isCurrentlyClosed = () => !this.previousProps || !this.previousProps.open | ||
@@ -80,0 +82,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
184439
609