TypeScript React Native

I am trying to setRef for Toast component. I get error above.

It’s very difficult to debug this without seeing more of your code. To start I’d try this format instead

<Toast ref={(ref) => Toast.setRef(ref)} />

The thing I want to achieve is showing toast message in a modal.

Here is the library link for Toast component

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.