-
-
Notifications
You must be signed in to change notification settings - Fork 374
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
- 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)
- New Architecture (Fabric)
Relevant log output
mikekreeki, lundb1tr and Yassiremt
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working