Passing The Relay Environment Through React Navigation

1 · Daniel Doubrovkine (dB.) @dblockdotorg · Aug. 4, 2018, midnight
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 import React, { Component } from 'react'; import { createRootNavigator } from './app/Main'; import environment from './app/Environment'; export default class App extends Component { r...