henninghall / react-native-date-picker

React Native Date Picker is datetime picker for Android and iOS. It includes date, time and datetime picker modes. The datepicker is customizable and is supporting different languages. It's written with native code to achieve the best possible look, feel and performance.
MIT License
2.25k stars 346 forks source link

DatePicker #706

Closed Hammad-012 closed 1 year ago

Hammad-012 commented 1 year ago

TypeError: NativePicker.openPicker is not a function (it is undefined)

Hammad-012 commented 1 year ago

<TouchableOpacity onPress={() => setOpen(true)}> <Text style={{color:'#666', marginLeft:5,marginTop:5}}>Date of Birth <DatePicker modal mode="date" open={open} date={date} onConfirm={(date) => { setOpen(false); setDate(date); }} onCancel={() => { setOpen(false); }} />

Hammad-012 commented 1 year ago

<TouchableOpacity onPress={() => setOpen(true)}> <Text style={{color:'#666', marginLeft:5,marginTop:5}}>Date of Birth <DatePicker modal mode="date" open={open} date={date} onConfirm={(date) => { setOpen(false); setDate(date); }} onCancel={() => { setOpen(false); }} />

henninghall commented 1 year ago

Duplicate of https://github.com/henninghall/react-native-date-picker/issues/404