You have to think of StackNavigator and createContainer as returning React components. Once you realize this, you can realize that they are composable just like any other React components.
well may be I did not understand well, still I couldn’t manage to make createContainer work without “Export Default”.
I ended up separating createContainer with StackNavigator in two higher level components.
Since we’re at it, is there a best practice regarding using createContainer/withTracker with react ?
I mean we could use only one instance of withTracker in the whole app and spreading data to the children, or anytime we need it we can include withTracker in a file, or maybe regroup withTracker according to some logic for a group of react children (I guess this makes the most sense if we have a lot of data to push to react children) .