Update documentation to use Hooks
a-zen opened this issue · comments
Alex 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.
Mateus Andrade 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.
I'm sorry, my mistake. I'll update ASAP
Mateus Andrade commented
Fixed and published