How to navigate in mobx store using react navigation?
问题 I can use this.props.navigation from screen component to navigate. How should I do the similar in mobx store file? Or should I perform navigation in store? I read the Navigating without the navigation prop article, but it seems only works for screen components, right? Someone says use global variable to store a this.props.navigation reference and use it anywhere, but I don't like the idea... 回答1: Yes either: forward the navigation class to the store when calling the method: // add nivagation