title: How to close android datepicker in react-native?
body: <p>Recently I have created a fingerprint-protected lock screen for my react-native app. Basically, when the user leaves the app and comes back later, this screen pops up. However, yesterday I have discovered that on android, if I open up a date picker, then leave the app and come back again, the date picker is still there:</p>
  
  <p><a href="https://i.stack.imgur.com/ABohH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ABohH.png" alt="datepicker"></a></p>
  
  <p>I am using <a href="https://github.com/xgfe/react-native-datepicker" rel="nofollow noreferrer">react-native-datepicker</a>, which internally uses DatePickerAndroid and TimePickerAndroid. </p>
  
  <p>Is there any way I can close the date picker programmatically?</p>