Skip to content

chore: upgrade react-native-modal-datetime-picker from 14.x to 18.x #429

@hb2708

Description

@hb2708

Summary

Upgrade react-native-modal-datetime-picker from 14.0.1 to 18.x. The package is several major versions behind and likely has breaking changes to its component props and event handlers.

Current → Target

Package Current Latest
react-native-modal-datetime-picker 14.0.1 18.0.0

Why Upgrade

  • Multiple major versions behind — likely missing bug fixes and platform improvements
  • Better compatibility with latest @react-native-community/datetimepicker (currently at 8.6.0)
  • Improved dark mode and accessibility support

Migration Steps

  1. Install new version:
    yarn add react-native-modal-datetime-picker@latest
  2. Review changelog for each major version bump (15, 16, 17, 18) — check for:
    • Renamed or removed props
    • Changed callback signatures (e.g., onConfirm, onCancel)
    • New required props
  3. Search codebase for all usages:
    grep -r "react-native-modal-datetime-picker" app/ --include='*.ts' --include='*.tsx'
    grep -r "DateTimePickerModal" app/ --include='*.ts' --include='*.tsx'
  4. Test on both platforms — date/time pickers behave differently on iOS vs Android
  5. Run yarn ci to verify

Files Likely Affected

  • Any screen/component using DateTimePickerModal
  • Likely in emission entry forms or date selection screens

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions