mCodex / react-native-rooster

Your toast solution for react-native apps 🐔

Home Page:https://mcodex.dev/react-native-rooster/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update documentation to use Hooks

a-zen opened this issue · comments

commented

Hi,

I followed the documentation to add a toast and got the following error:

[Unhandled promise rejection: TypeError: (0, _reactNativeRooster.addToast) is not a function. (In '(0, _reactNativeRooster.addToast)({]

I then checked the example app in the repository and noticed that the hook useToast should be used instead and got it to work.

Would be nice to update the documentation.

Hi,

I followed the documentation to add a toast and got the following error:

[Unhandled promise rejection: TypeError: (0, _reactNativeRooster.addToast) is not a function. (In '(0, _reactNativeRooster.addToast)({]

I then checked the example app in the repository and noticed that the hook useToast should be used instead and got it to work.

Would be nice to update the documentation.

I'm sorry, my mistake. I'll update ASAP

Fixed and published