You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a scene inside a stack and want to attach some behaviour to the right nav bar button. The router looks roughly like this (irrelevant scenes removed):
Now, the problem is that I want to call some method on the component instance. One thing I can do is add the onRight prop to the Scene, but this does not give me access to the component instance, only the component class. Another approach is to add a static onRight() to the component, but once again, no access to the component instance.
Is this functionality currently missing or not working properly? Or am I missing something myself? The documentation and examples are not very clear on how to properly implement this pattern. Thanks for any assistance!
The text was updated successfully, but these errors were encountered:
Version
Problem
I have a scene inside a stack and want to attach some behaviour to the right nav bar button. The router looks roughly like this (irrelevant scenes removed):
Now, the problem is that I want to call some method on the component instance. One thing I can do is add the
onRight
prop to theScene
, but this does not give me access to the component instance, only the component class. Another approach is to add astatic onRight()
to the component, but once again, no access to the component instance.Is this functionality currently missing or not working properly? Or am I missing something myself? The documentation and examples are not very clear on how to properly implement this pattern. Thanks for any assistance!
The text was updated successfully, but these errors were encountered: