backpackapp-io / react-native-toast

A library used to show toasts in a React-Native app with features such as multiple toasts, promise-based callbacks, and swipe to dismiss
MIT License
242 stars 20 forks source link

Feature request: Additional config options #35

Open nhuesmann opened 1 month ago

nhuesmann commented 1 month ago

Hi there. First of all, thanks for this amazing library. I was trying to get react-hot-toast configured in react native and finding it a bit of a pain. This library gets me super close but there are a few things I'd still need to be able to full switch to.

  1. Allow using withTiming when toast is positioned on bottom. Currently, it seems bottom positioned toasts only allow withSpring. I'd like to use withTiming on bottom positioned toasts.
  2. Allow reversing the order of toast entries. react-hot-toast has their react native example [here](https://snack.expo.io/@timo/react-hot-toast---usetoaster()---react-native). In it you can see them passing a prop called reverseOrder to the second argument of handlers.calculateOffset(). Basically, if the toasts are set to top position, every subsequent toast enters above the existing toasts and pushes them down, rather than entering below all other toasts. In my opinion this looks a bit more natural.

It'd be super helpful to have these features :) thank you!

nickdebaise commented 3 weeks ago

Hey, thanks for creating this issue! I've been super busy but know that this is on my road map now.