Skip to content

Conversation

zhenkaGo
Copy link

@zhenkaGo zhenkaGo commented Sep 7, 2025

This PR resolves the crash that occurs on Samsung Android devices when the date picker is open during screen rotation.

The original implementation used a basic AlertDialog which doesn't properly handle activity lifecycle changes during configuration changes like screen rotation. Samsung devices appear to be more strict about dialog lifecycle management, causing crashes when the dialog tries to reference a destroyed activity context.

Fixes #913

- Replace AlertDialog-based implementation with DialogFragment for better lifecycle management
- Add proper fragment handling for activity configuration changes
- Improve dialog dismissal logic with fragment manager cleanup
- Maintain existing picker functionality and event handling
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

Successfully merging this pull request may close these issues.

[Bug]: 🐛 Crash on Samsung Devices When Rotating Screen with react-native-date-picker
1 participant