react-native-date-picker icon indicating copy to clipboard operation
react-native-date-picker copied to clipboard

Warning: TypeError: Cannot read property 'bubblingEventTypes' of null

Open xiaoxuehai opened this issue 1 year ago • 7 comments

Describe the bug image image

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]

xiaoxuehai avatar Dec 27 '24 09:12 xiaoxuehai

I am having the same issue, in iOS Simulator, with latest xCode.

date_picker_issue

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",

sultanularefin avatar Dec 28 '24 05:12 sultanularefin

I also encountered the same problem

DickJoe09 avatar Jan 05 '25 15:01 DickJoe09

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

moismailyp avatar Jan 08 '25 06:01 moismailyp

Did somebody solve this for the inline edit? I always get that error

Ainias avatar Jan 28 '25 10:01 Ainias

I feel stupid. I only did a pod install, but not a new build for ios and android. After the build, it works

Ainias avatar Jan 28 '25 11:01 Ainias

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.

jayarerita avatar Feb 21 '25 10:02 jayarerita

Rebuild eas worked for me

afshoang avatar Feb 28 '25 01:02 afshoang