UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

39 lines (31 loc) 838 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.strictModeLogger = void 0; const tokenNotString = 'tokenNotString'; const tokenNotFound = 'tokenNotFound'; const strictModeLogger = ({ token, scale, mode, type }) => { if (!mode) { mode = 'off'; } if (mode === 'off') return; // eslint-disable-next-line no-console const log = console[mode]; switch (type) { case tokenNotFound: log("Token ".concat(token, " not found in theme scale of ").concat(scale, ". Please use extendTheme function to add this token in your theme")); return; case tokenNotString: log("Token ".concat(token, " should be passed as a string.")); return; default: return; } }; exports.strictModeLogger = strictModeLogger; //# sourceMappingURL=StrictMode.js.map