React Navigation Drawer: Dynamically routes and navigation items?
Right now I am facing a problem.. Before my application gets mounted, I am fetching categories from an API. Now I want to have a dynamic app which always contains the newest data. I want to have the different categories always as a separated screen. The functions I need for every category screen is always the same. So, I have build myself a screen template. However, I have to fetch the different categories from the API and then import my template screen as many times as I have fetched categories to create a screen for each category. Furthermore, I need to pass the category to the template