Relay: Workaround Flow Network Layer Bug
Relay: Workaround Flow Network Layer Bug

Summary:
Injecting an instance of a class that implements the required methods defined by the `NetworkLayer` type does not seem to pass Flow checks. For example:

  // Flow warns that `networkLayer` does not implement the methods on `NetworkLayer`.
  const MyNetworkLayer = require('MyNetworkLayer');
  Relay.injectNetworkLayer(new MyNetworkLayer());

This works around it for now until we can investigate the root of the problem.

Reviewed By: steveluscher

Differential Revision: D2797999

fb-gh-sync-id: 1ee5f08a1f40a33ccb3cb5f81cd0746cd8d2b0ea

kassens/relay,chirag04/relay,josephsavona/relay,atxwebs/relay,cpojer/relay,iamchenxin/relay,xuorig/relay,gabelevi/relay,apalm/relay,wincent/relay,mroch/relay,xuorig/relay,josephsavona/relay,Aweary/relay,cpojer/relay,Aweary/relay,chirag04/relay,wincent/relay,kassens/relay,benjaminogles/relay,benjaminogles/relay,xuorig/relay,voideanvalue/relay,heracek/relay,apalm/relay,michaelchum/relay,cesarandreu/relay,NevilleS/relay,andimarek/generic-relay,rosskevin/relay,andimarek/generic-relay,dbslone/relay,xuorig/relay,venepe/relay,iamchenxin/relay,yungsters/relay,forter/generic-relay,gabelevi/relay,iamchenxin/relay,facebook/relay,NevilleS/relay,voideanvalue/relay,cesarandreu/relay,cpojer/relay,rosskevin/relay,facebook/relay,wincent/relay,voideanvalue/relay,zpao/relay,facebook/relay,benjaminogles/relay,voideanvalue/relay,freiksenet/relay,chentsulin/relay,mroch/relay,heracek/relay,cesarandreu/relay,atxwebs/relay,kassens/relay,apalm/relay,freiksenet/relay,xuorig/relay,wincent/relay,michaelchum/relay,venepe/relay,facebook/relay,chirag04/relay,wincent/relay,heracek/relay,kassens/relay,kassens/relay,josephsavona/relay,xuorig/relay,gabelevi/relay,mroch/relay,freiksenet/relay,voideanvalue/relay,atxwebs/relay,Aweary/relay,chentsulin/relay,yungsters/relay,andimarek/generic-relay,yungsters/relay,zpao/relay,chentsulin/relay,kassens/relay,michaelchum/relay,NevilleS/relay,wincent/relay,facebook/relay,voideanvalue/relay,zpao/relay,facebook/relay,dbslone/relay,iamchenxin/relay,venepe/relay,atxwebs/relay,cpojer/relay