I want to close the modal after 10 seconds for which I tried using onPressCacel which is not working.
Expected Behavior
when you click on the date picker we should be able to dismiss the modal even with out confirm or cancel only then we can say it as a controlled component but this date picker uncontrolled.
Code
export default class App extends Component {
state = { date: "2018-08-30" }
Issue
I want to close the modal after 10 seconds for which I tried using onPressCacel which is not working.
Expected Behavior
when you click on the date picker we should be able to dismiss the modal even with out confirm or cancel only then we can say it as a controlled component but this date picker uncontrolled.
Code
export default class App extends Component { state = { date: "2018-08-30" }
}
Environment
react-native -v
:node -v
:npm -v
:yarn --version
:target platform
: Android | iOSoperating system
: