Expose "hide" functionality from "react-native-toast-message" library
- Dominant language
- TypeScript
- Stars
- 23
- Forks
- 3
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 4
Description
### Package / App
MAD Components
### Description
Currently, there is an issue in the toast message functionality where a new toast message does not display if another toast is currently visible. The new message only appears after the user taps on the existing toast to dismiss it. This behavior disrupts the user experience, as multiple messages cannot be shown in succession without user interaction.
In order to fix this, we can expose the "hide" function from "react-native-toast-message" and call it just before addToast is called so the current visible toast is automatically dismissed when a new toast message is to be shown.
cc: @AnjaliPandit20
### Alternatives
_No response_
### Other info
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the MAD Components toast implementation and inspect how addToast calls react-native-toast-message. Check whether the library's hide function is available through its API, then verify that showing a new toast dismisses the current one and allows the new message to appear without user interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100