Added ReactFabric shim (#12216)
Brian Vaughn committed
Feb 12, 2018 at 10:12 UTC
d4afeb5aff445ea2a8bbd92efa6c532a37aab4e6
1 file changed
+23
scripts/rollup/shims/react-native/ReactFabric.js
new
+23
@@ -0,0 +1,23 @@
1
+/**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
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
+ * @providesModule ReactFabric
8
+ * @flow
9
+ */
10
+'use strict';
11
+
12
+// TODO @sema: Adjust types
13
+import type {ReactNativeType} from 'ReactNativeTypes';
14
+
15
+let ReactFabric;
16
+
17
+if (__DEV__) {
18
+ ReactFabric = require('ReactFabric-dev');
19
+} else {
20
+ ReactFabric = require('ReactFabric-prod');
21
+}
22
+
23
+module.exports = (ReactFabric: ReactNativeType);