UNPKG

@audira/carbon-react-native

Version:

Build React Native apps with component and shared patterns using Carbon

12 lines (10 loc) 488 B
"use strict"; // Probably better to move to the `GlobalContext` // Historically, it also holds all the Carbon color tokens based on what the `colorScheme` is. // Holding an object with 150+ properties in the app runtime seems ridiculous import { createContext } from 'react'; import { ColorSchemeGlobal } from "../../_internal/globals/index.js"; export const ThemeContext = /*#__PURE__*/createContext({ colorScheme: ColorSchemeGlobal.get() }); //# sourceMappingURL=ThemeContext.js.map