Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePickerAndroid is not open #20937

Closed
brahmy opened this issue Sep 1, 2018 · 2 comments
Closed

DatePickerAndroid is not open #20937

brahmy opened this issue Sep 1, 2018 · 2 comments
Labels
Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@brahmy
Copy link

brahmy commented Sep 1, 2018

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()

       console.log("android") 
} 
// Alert.alert('You tapped the button!');

}}
title="Press Me"
/>`

please help me with this issue.

@react-native-bot react-native-bot added the Platform: Android Android applications. label Sep 1, 2018
@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.

If you'd like to propose a change or discuss a feature request, there is a repository dedicated to Discussions and Proposals you may use for this purpose.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. 📋No Template labels Sep 1, 2018
@MaxInMoon
Copy link

@brahmy try to have a look in this function from react-native-modal-datetime-picker.
Also, this error can come from a issue I recently identified, at least I guess: #21253

@facebook facebook locked as resolved and limited conversation to collaborators Sep 1, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants