Skip to content

[Feature Request] Customizable Animation Options and Delays for Modal #125

@securitateaa

Description

@securitateaa

Description:

The current implementation of the modal in react-native-country-codes-picker uses fixed animation settings that do not allow developers to disable animations or customize the delays for opening and closing the modal. This lack of flexibility can be problematic in projects where specific modal behavior is required.

Feature Request:

Disable Animations:
Introduce a new prop (e.g., disableAnimations) that allows developers to turn off modal animations entirely.
Custom Delay Options:
Allow customization of the delays for opening and closing the modal by adding new props (e.g., openDelay and closeDelay). This would let developers control the timing of modal transitions more precisely.
Proposed Implementation:

Prop Addition:
Add the disableAnimations, openDelay, and closeDelay props to the picker component.
Modal Behavior:
When disableAnimations is true, the modal should appear and disappear instantly without any animation.
The openDelay and closeDelay props should determine the time delay (in milliseconds) before the modal fully opens or closes, respectively.

Additional Notes:
I am willing to work on the code changes and open a pull request to implement these enhancements.
This feature would improve the flexibility of the library, making it easier to integrate into projects with unique animation requirements or where performance is a concern.

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