@audira/carbon-react-native
Version:
Build React Native apps with component and shared patterns using Carbon
15 lines (14 loc) • 420 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getColorScheme = getColorScheme;
var _reactNative = require("react-native");
function getColorScheme(appearanceColorScheme) {
return mapScheme[appearanceColorScheme || _reactNative.Appearance.getColorScheme() || 'light'];
}
const mapScheme = {
light: 'gray_10',
dark: 'gray_100'
};
//# sourceMappingURL=get-color-scheme.js.map