Skip to content

Crash in release build on Android (FATAL EXCEPTION: mqt_v_native)Β #875

Open
@kgroshev

Description

@kgroshev

Bug description
The app crashes immediately after the splash screen in the release build when using react-native-date-picker. The error indicates the library is not installed correctly, even though it works fine in the debug build.

Expected behavior
The app is expected to launch in the release build on emulator.

To Reproduce

<DatePicker
      modal
      mode="date"
      open={isDatePickerOpen}
      date={formData.flight_date ? new Date(formData.flight_date) : new Date()}
      onConfirm={handleDateChange}
      onCancel={() => setIsDatePickerOpen(false)}
/>

Proguard rules aren't enabled. Attempted to enable with the below flags, same behaviour:

-keep class com.henninghall.date_picker.** { *; }
-dontwarn com.henninghall.date_picker.**

Ignoring the warning also has no effect. iOS debug and release are not affected. Android debug release is unaffected.
The app has been rebuilt on both iOS and Android.

Package.json:

"dependencies": {
    "@react-native-async-storage/async-storage": "^2.1.0",
    "axios": "^1.7.9",
    "clsx": "^2.1.1",
    "md5": "^2.3.0",
    "react": "18.3.1",
    "react-native": "0.76.3",
    "react-native-date-picker": "^5.0.8",
    "react-native-element-dropdown": "^2.12.2",
    "react-native-geolocation-service": "^5.3.1",
    "react-native-permissions": "^5.2.1",
    "react-native-safe-area-context": "^5.0.0",
    "react-native-uuid": "^2.0.3",
    "react-native-vector-icons": "^10.2.0"
  },

Relevant Logcat logs:

FATAL EXCEPTION: mqt_v_native
com.facebook.react.common.JavascriptException: Error: react-native-date-picker is not installed correctly. Make sure you: 

1. Rebuilt the app (by for instance 'npx react-native run-ios')

Please reply in this thread if this solved your issue or not: 
https://github.com/henninghall/react-native-date-picker/issues/404

Smartphone
React Native Version: 0.76.3
react-native-date-picker Version: 5.0.8
Platform: Android (Release build only)
Node Version: v23.4.0
Emulator: Pixel_6_Pro_API_33(AVD) - 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions