Installed the datepicker cordova plugin: cordova plugin add cordova-plugin-datepicker
Added the following code:
`import {DatePicker} from ‘ionic-native’;
DatePicker.show({
date: new Date(),
mode: ‘date’
}).then(
date => console.log("Seleted date is: ", date),
err => console.log(“Error occurred while getting date:”, err)
);`
I get the error as ‘Module DatePicker not found’. How to install and configure this datepicker plugin? Can I install it via npm? Please help.
When I try to import Datepicker i get the error as ‘Module not found’.
import {DatePicker} from ‘ionic-native’ So where to find the datepicker module. Have done the installation correctly? Is there any documentation on installing it?