-
-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Exception in HostFunction: Non-whitespace character found after end of conversion: "-07-10T12:51:52.881Z" #840
Comments
I made a fix which works for me. Had the same issue with new architecture enabled on Android |
Please provide example code where this issue is reproducible and I'll look into it |
So the issue happens when using the component with modal={false} and newArchEnabled=true |
@henninghall this happens for me with just the default inline example: import React, { useState } from 'react'
import DatePicker from 'react-native-date-picker'
export default () => {
const [date, setDate] = useState(new Date())
return <DatePicker date={date} onDateChange={setDate} />
} New architecture enabled. Relevant packages:
|
Facing the same issue while using inline mode with newArchEnabled |
Having the same issue (new arch) - @henninghall are there any updates on this one? 🙏 |
Same issue... @henninghall any updates on this one? |
Same issue ! @henninghall |
same issue here, is there any solution ? |
for people get stuck by this error, Badrey made a fix for this. see comments above. To use the fix, edit package.json dependency section to use this line below, and it will pull in Badrey's fix. |
Hi guys I’ll look into this, which device languages is active when this happens? |
Hello for me it was French ! |
@henninghall FYI for me it was just the default inline example in English. |
Same error here! (also french) @badrey solution is working for me, @henninghall can we consider to integrate it to the next release? Thank you. |
i have same issue, is there any solution ?? |
Same here |
Same here. Even with the fix, the app crashes on date change. |
@OldsunFlush I had the same issue at first and it was because I forgot to rebuild the app, now it seems to works smoothly even on date change with the fix 👍 |
I have the same issue and I confirm that patching the package using @badrey's PR worked on my app with the native architecture enabled. |
I have been able to reproduce this in new architecture (bridgeless) with expo 52. I appreciate @badrey 's solution, but unfortunately it is not something we can merge at the moment. I've made a draft PR of the approach we would need, if anyone got the time, please pick it up from there and complete it. Make it compile and test it out. I will have limited internet access until end of januari but I will be able to review and merge PRs. Thanks guys! |
Indeed, it seems to works after a rebuild! |
Having the same issue. Currently using @badrey's solution until this gets fixed upstream. |
I applied it as a patch for now to fix it in the new architecture (RN0.76.3), (react-native-date-picker ^5.0.7). Step 1:Edit the package as described in #848, paths:
Step 2:Install patch-package
or via yarn
Step 3:add the postinstall script in your package.json
Step 4:Create the patch file
or
Step 5:This will produce a file in your Step 6:Apply the patch
Step 7:Add your staged changes
|
I still have the same issue. Can the official release solve this problem? I'm just using it in a simple way. |
Getting the error :
Error: Exception in HostFunction: Non-whitespace character found after end of conversion: "-07-10T12:51:52.881Z"
"react": "18.2.0",
"react-native": "0.74.1",
"react-native-date-picker": "^5.0.4",
The text was updated successfully, but these errors were encountered: