My MainView component then renders the MyActionSheet using a ternary condition and I try to call this.ActionSheet.show() in ComponentDidMount but I get the error in the title undefined is not an object (evaulating '_this.ActionSheet.show')
There is probably something fundamental I'm missing but I've been on this all weekend.
I've wrapped
ActionSheet
in a class component, call itMyActionSheet
with some standard styling that I plan to use throughout my app.I'm then passing
MyActionSheet
to one of my main view components which passes props down toMyActionSheet
as they're received.My
MainView
component then renders theMyActionSheet
using a ternary condition and I try to callthis.ActionSheet.show()
inComponentDidMount
but I get the error in the titleundefined is not an object (evaulating '_this.ActionSheet.show')
There is probably something fundamental I'm missing but I've been on this all weekend.