Following is the hierarchy of my app navigators
├── appNavigator ( Bottom Tab Navigator)
├── feed (Stack Navigator)
- postDetailScreen
- pageDetailScreen
- ProfileDetailScreen
- ...other screens
├── notifications (Stack Navigator)
- ProfileDetailScreen
- PageDetailScreen
- PostDetailScreen
- ...other screens
├── profile (Stack Navigator)
- ProfileDetailScreen
- PageDetailScreen
- PostDetailScreen
- ...other screens
Now the problem is I have to duplicate the screens (ProfileDetail, PostDetail and PageDetail) which are common among all the stacks in order for them to be accessible within the stacks.
Is there a better solution for this usecase. Where should I put the common screens so that they are available in all the children stack and I don't have to duplicate them everywhere.
Here's an open github issue which I went through but could not find a good solution Isuue