TheWidlarzGroup / react-native-notificated

⚡️React Native toast notifications
https://thewidlarzgroup.github.io/react-native-notificated/
MIT License
356 stars 18 forks source link

[FEATURE] Improve notificationPosition configuration #218

Closed PdoubleU closed 9 months ago

PdoubleU commented 11 months ago

Feature Request Requirements:

The existing notificationPosition attribute in the library doesn't provide enough positioning options, especially on larger screens like tablets.

Describe the solution you'd like:

I would like to expand the capabilities of the library by enhancing the notificationPosition attribute. Currently, the options are limited to top, center, and bottom. However, I propose adding the following additional options:

top-left top-right bottom-left bottom-right

This expanded set of positioning options would offer greater flexibility in placing notifications on the screen, catering to various device sizes and layouts.

Describe alternatives you've considered

I've considered manually manipulating the notification positioning using custom styles or modifying the library's code directly. However, both of these approaches are less convenient and could potentially lead to maintenance challenges in the long run.

Additional context

Adding these new positioning options would greatly enhance the usability of the library, especially on larger screens where the existing options might not suffice. This change could contribute to a more responsive and user-friendly experience for applications built using react-native-notificated.

This solution could be an extension of this: #216, where @eleddie pointed out an issue with the notification width on tablets.

Customizing the width should also be supported by improving the notification's positioning on the screen.

PdoubleU commented 9 months ago

This is going to be resolved with #220

PdoubleU commented 9 months ago

closed with https://github.com/TheWidlarzGroup/react-native-notificated/pull/220