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)} />
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)} />