mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 09:12:02 +00:00
19 lines
379 B
JavaScript
19 lines
379 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule cssVar
|
|
* @typechecks
|
|
*/
|
|
'use strict';
|
|
|
|
var invariant = require('invariant');
|
|
var CSSVarConfig = require('CSSVarConfig');
|
|
|
|
var cssVar = function(/*string*/ key) /*string*/ {
|
|
invariant(CSSVarConfig[key], 'invalid css variable ' + key);
|
|
|
|
return CSSVarConfig[key];
|
|
};
|
|
|
|
module.exports = cssVar;
|