mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
ad8a335864
Summary:Follow-up to https://github.com/facebook/react-native/pull/5084 This… - changes all requires within RN to `require('fbjs/lib/…')` - updates `.flowconfig` - updates `packager/blacklist.js` - adapts tests - removes things from `Libraries/vendor/{core,emitter}` that are also in fbjs - removes knowledge of `fbjs` from the packager Closes https://github.com/facebook/react-native/pull/5084 Reviewed By: bestander Differential Revision: D2926835 fb-gh-sync-id: 2095e22b2f38e032599d1f2601722b3560e8b6e9 shipit-source-id: 2095e22b2f38e032599d1f2601722b3560e8b6e9
19 lines
388 B
JavaScript
19 lines
388 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule cssVar
|
|
* @typechecks
|
|
*/
|
|
'use strict';
|
|
|
|
var invariant = require('fbjs/lib/invariant');
|
|
var CSSVarConfig = require('CSSVarConfig');
|
|
|
|
var cssVar = function(/*string*/ key) /*string*/ {
|
|
invariant(CSSVarConfig[key], 'invalid css variable ' + key);
|
|
|
|
return CSSVarConfig[key];
|
|
};
|
|
|
|
module.exports = cssVar;
|