@audira/carbon-react-native
Version:
Build React Native apps with component and shared patterns using Carbon
11 lines (10 loc) • 599 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getToken = getToken;
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
function getToken(windowWidth) {
return windowWidth < _carbonReactNativeElements.Breakpoint.medium.value.px ? 'small' : windowWidth < _carbonReactNativeElements.Breakpoint.large.value.px ? 'medium' : windowWidth < _carbonReactNativeElements.Breakpoint.x_large.value.px ? 'large' : windowWidth < _carbonReactNativeElements.Breakpoint.max.value.px ? 'x_large' : 'max';
}
//# sourceMappingURL=get-token.js.map