Android Production Crashes
Problem
Your Android app crashes in production/release mode, but works fine in development.Solution
If you have enabled Proguard for Android, you need to add exceptions for date picker classes. Add these lines to your Proguard file (usuallyandroid/app/proguard-rules.pro):
Linking Issues
Problem
The app builds successfully but the date picker doesn’t appear or throws errors about native modules.Solution
This package supports automatic linking. Follow these steps:-
Install the package
-
Install pods (iOS only, skip for Expo projects)
-
Rebuild the project
For React Native < 0.60
If you’re using React Native version below 0.60, automatic linking is not supported. Run:Manual Linking
In some cases, you may need to manually link the package. See this issue for detailed manual linking instructions.Font Size Issues
Problem
You want to change the font size of the date picker.Solution for Android
Openandroid/app/src/main/res/values/styles.xml and add this code right above the </resources> tag:
25sp value to your desired size.
Solution for iOS
Font size is not possible to change on iOS out of the box due to platform limitations. However, there are some iOS workarounds available in the community.
Date Order Issues
Problem
You want to change the date order (e.g., from MM/DD/YYYY to YYYY-MM-DD).Solution
The date order is determined by thelocale prop. Set the locale to match your desired format:
The locale determines the date order based on that region’s conventions. You cannot customize the order independently of the locale.
12/24-Hour Format Issues
Problem
You want to control whether the picker shows 12-hour (AM/PM) or 24-hour format.Solution
iOS: The 12/24-hour format is determined by thelocale prop:
Expo Compatibility
Problem
The picker doesn’t work in Expo Go app.Solution
- ✅ You can use this library with Development Builds. No config plugin is required.
- ❌ This library can’t be used in the “Expo Go” app because it requires custom native code.
- Use Expo SDK 42 or later
- Create a development build:
React Native Version Requirements
Problem
The picker doesn’t work or causes build errors.Solution
Ensure you meet the minimum requirements:- Xcode: >= 11.6
- React Native: >= 0.57
- React Native 0.64: Must use 0.64.2 or later
- Expo: SDK 42 or later
- Expo SDK 44: Must use 44.0.4 or later
Month/Year Only Picker
Problem
You want to show only month and year selection (no day).Solution
Workaround: You can create a custom month-year picker using a different library like react-native-wheel-pick.Disabling Confirm Until Wheel Stops
Problem
You want to prevent users from confirming before the picker wheel has stopped spinning (Android).Solution
Use theonStateChange prop to track the spinner state:
The
onStateChange callback receives either "spinning" or "idle" as the state value. This only works with Android inline pickers.New Architecture Support
Problem
You’re using React Native’s new architecture (Fabric + Turbo Modules) and experiencing issues.Solution
This package supports React Native’s new architecture from:- React Native: 0.71 and forward
- react-native-date-picker: 4.3.0 and forward
Upgrading to v4
Problem
You’re upgrading from v3 to v4 and want to know about breaking changes.Solution
There are no breaking changes in v4. Simply update the version number in your
package.json and reinstall.Getting Further Help
If your issue isn’t covered here:- Check the GitHub Issues for similar problems
- Search the GitHub Discussions for community solutions
- Create a new issue with:
- React Native version
- Package version
- Platform (iOS/Android)
- Minimal code to reproduce the issue
- Error messages or screenshots
Common Fixes
- Add Proguard rules for Android
- Rebuild after installation
- Use correct locale for date format
- Check minimum version requirements
Platform Limitations
- iOS font size cannot be changed easily
- Month/year only picker not supported
- Expo Go not supported (use dev builds)
- Date order tied to locale