Skip to content
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

Open
bnv1223 opened this issue Jul 10, 2024 · 15 comments

Comments

@bnv1223
Copy link

bnv1223 commented Jul 10, 2024

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

@badrey
Copy link

badrey commented Aug 14, 2024

I made a fix which works for me. Had the same issue with new architecture enabled on Android
#848

@henninghall
Copy link
Owner

Please provide example code where this issue is reproducible and I'll look into it

@pasindupansiluvault
Copy link

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

@brentkelly
Copy link

@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:

"react": "18.2.0",
"react-native": "~0.75.0",
"react-native-date-picker": "^5.0.7",

@shel404
Copy link

shel404 commented Oct 15, 2024

Facing the same issue while using inline mode with newArchEnabled

@szarbartosz
Copy link

szarbartosz commented Oct 24, 2024

Having the same issue (new arch) - @henninghall are there any updates on this one? 🙏
(created dev builds with eas - the issue occurs only on android emulator - on ios it works fine)

@SzymonGonet
Copy link

Same issue... @henninghall any updates on this one?

@mateoabrbt
Copy link

Same issue ! @henninghall

@lpcapestanya
Copy link

same issue here, is there any solution ?

@swoo888
Copy link

swoo888 commented Oct 31, 2024

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.
"react-native-date-picker": "git+https://github.com/badrey/react-native-date-picker.git#new-arc-fix"

@henninghall
Copy link
Owner

Hi guys I’ll look into this, which device languages is active when this happens?

@mateoabrbt
Copy link

Hello for me it was French !

@brentkelly
Copy link

Hi guys I’ll look into this, which device languages is active when this happens?

@henninghall FYI for me it was just the default inline example in English.

@RamProg
Copy link

RamProg commented Nov 13, 2024

Same error here! (also french)

@badrey solution is working for me, @henninghall can we consider to integrate it to the next release? Thank you.

@agag4
Copy link

agag4 commented Nov 13, 2024

i have same issue, is there any solution ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests