I have a bunch of react navigation tabs and one of them opens up the camera. The problem is when the application loads, react navigation instantly renders all the pages at once so the camera is on even if I can't see it. The router file is just a bunch of StackNavigator objects representing each page, loaded into the TabNavigator object.
How can I only render the page I'm going to so that the camera isn't on when it doesn't need to be?