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

[Bug]: Warning: Error: Exception in HostFunction: Non-whitespace character found after end of conversion: "-05-04T00:00:00.000Z"

Open pierreprezelin opened this issue 4 months ago • 0 comments

Describe the bug

From issue #840, after testing from v5.0.9 to the latest 5.0.13, the issue persists on Android for any language. I still need to rely on git+https://github.com/badrey/react-native-date-picker.git#new-arc-fix after almost a year.

Expected behavior

On Android, when I open a datepicker, the app crashes with "Warning: Error: Exception in HostFunction: Non-whitespace character found after end of conversion: "-05-04T00:00:00.000Z". The fix in v5.0.10 didn't solve the issue.

To Reproduce

import DatePicker from "react-native-date-picker";
import { useTranslation } from "react-i18next";

export default function Datepicker(props: DatepickerProps) {
  const { i18n } = useTranslation();
  const locale = i18n.language;

  const [date, setDate] = useState(new Date());

  return (
    <DatePicker
      mode="date"
      locale={locale}
      date={date}
      onDateChange={(date: Date) => {
        setDate(date);
      }}
    />
  );
};

Operating System

  • [x] Android
  • [ ] iOS

React Native Version

0.79.5

Expo Version (if applicable)

53.0.20

react-native-date-picker version

5.0.13

React Native Architecture

  • [ ] Old Architecture (Paper)
  • [x] New Architecture (Fabric)

Relevant log output


pierreprezelin avatar Aug 08 '25 20:08 pierreprezelin