Open one of two drawers from button in react navigation 5
问题 It was previously possible to open a specific drawer from a button, using getCustomActionCreators , prior to v5 of React Navigation. An example of doing that is here: React Native two drawers on one screen However, it looks like this function has been removed. Is there a way to do this in React Navigation 5? 回答1: This is possible by creating a custom router. Here are a few key pieces of insight: navigators bubble up actions which they don't handle. This means that we need to create a custom