Skip to content

[Bug]: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RNDatePicker setDatePickerMode:]: unrecognized selector sent to instance 0x120e5bc00' #912

Open
@snkr006

Description

@snkr006

Describe the bug

The app crashes on ios when I attempt to render a DatePicker. It was working fine for older versions of react native, but when I upgraded (0.74.2 to 0.78.0) to the newer version, it is crashing the app.

Expected behavior

It should render properly on all platforms.

To Reproduce

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} />
}

Operating System

  • Android
  • iOS

React Native Version

0.78.0

Expo Version (if applicable)

No response

react-native-date-picker version

5.0.12

React Native Architecture

  • Old Architecture (Paper)
  • New Architecture (Fabric)

Relevant log output

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RNDatePicker setDatePickerMode:]: unrecognized selector sent to instance 0x120e5bc00'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions