DatePickerAndroid is not open #20937
Labels
Platform: Android
Android applications.
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
I am getting the working of "Cannot open date picker". i am creating datepickerandroid like the following.
async openAndroidDatePicker() { try { const {action, year, month, day} = await DatePickerAndroid.open({ date: new Date() }); } catch ({code, message}) { console.warn('Cannot open date picker', message); } }
and calling this in button like bellow.
` <Button
onPress={() => {
if(Platform.OS === 'ios') {
console.log(" ios")
} else {
this.openAndroidDatePicker()
}}
title="Press Me"
/>`
please help me with this issue.
The text was updated successfully, but these errors were encountered: