Warning: TypeError: Cannot read property 'bubblingEventTypes' of null
Describe the bug
Expected behavior A clear and concise description of what you expected to happen.
To Reproduce Add example code that reproduces the behavior.
import { useState } from 'react';
import DatePicker from 'react-native-date-picker';
import { View } from '@/components/ui';
export default function Demo() {
const [date, setDate] = useState(new Date());
return (
<View>
<DatePicker date={date} onDateChange={setDate} />
</View>
);
}
Smartphone (please complete the following information):
- OS: [Android]
- React Native version [e.g. 0.76.5]
- react-native-date-picker version [e.g. 5.0.8]
- expo version [e.g. 52.0.18]
I am having the same issue, in iOS Simulator, with latest xCode.
I am using this packages:
"react-native": "0.76.1", "@react-native-community/datetimepicker": "^8.2.0", "react-native-modal-datetime-picker": "^18.0.0", "react-native-date-picker": "^5.0.8",
I also encountered the same problem
specify the type <DatePicker modal open={endDateOpen} date={endDate} onConfirm={(selectedDate) => { setEndDateOpen(false); setEndDate(selectedDate); }} onCancel={() => setEndDateOpen(false)} /> in this case 'modal' it may resolve this issue
Did somebody solve this for the inline edit? I always get that error
I feel stupid. I only did a pod install, but not a new build for ios and android. After the build, it works
I encountered this error, but it ended up that my package.json had somehow gotten out of sync with the packages actually installed in my node_modules directory. I deleted the node_modules directory as well as package-lock.json and re-installed, after which it worked.
Rebuild eas worked for me