'manage Multiple back stacks when using bottom navigation and navigation component

I am using bottom navigation and I have 3 main fragment in it (fragment 1, 2 and 3 in image) and there is some other fragments that I manage them in navigation component so they are not in bottom navigation menu. there are some directions between all fragments (you can see in image)

navigation.xml

How should I manage this Directions with bottom navigation?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source