UNPKG

600 BJavaScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 *
8 * @format
9 */
10// flowlint ambiguous-object-type:error
11'use strict';
12
13var React = require('react');
14
15var ReactRelayContext = require('./ReactRelayContext');
16
17function ReactRelayFragmentMockRenderer(props) {
18 return /*#__PURE__*/React.createElement(ReactRelayContext.Provider, {
19 value: {
20 environment: props.environment
21 }
22 }, props.render());
23}
24
25module.exports = ReactRelayFragmentMockRenderer;
\No newline at end of file