GeekyAnts / GeekyAnts/NativeBase
Custom Toast isn't passed with onClose props despite the document saying so
Open
bug
triage
v3
- Dominant language
- TypeScript
- Stars
- 20.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
The `onClose` method is needed to close the toast prematurely.
### CodeSandbox/Snack link
https://github.com/GeekyAnts/NativeBase/blob/6161d8814cee624f9856906f53f53a9508c55a55/src/components/composites/Toast/Toast.tsx#L222
### Steps to reproduce
_No response_
### NativeBase Version
3.4.8
### Platform
- [ ] Android
- [ ] CRA
- [X] Expo
- [ ] iOS
- [ ] Next
### Other Platform
_No response_
### Additional Information
The code can be changed to
```ts
component = render({ id, onClose: () => Toast.close(id) });
```
Contributor guide
Assessment
This issue has not been assessed yet.