Passing the Relay environment around to make it available in each
QueryRenderer with react-navigation seems unnecessarily difficult because of the difference between component props and screen props. I’ve successfully used react-navigation-props-mapper to merge the two in 33-minutes-app.
screenProps at App Level
withMappedNavigationProps at Component Level
Using react-navigation-props-mapper in each separate screen such as Settings.
You no longer have to
import the Relay environment all over the place.