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 · 5 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

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

6 participants