UNPKG

@audira/carbon-react-native

Version:

Build React Native apps with component and shared patterns using Carbon

37 lines (36 loc) 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HeaderBorder = HeaderBorder; var _react = require("react"); var _reactNative = require("react-native"); var _carbonReactNativeElements = require("@audira/carbon-react-native-elements"); var _index = require("../../_internal/style-sheets/index.js"); var _index2 = require("../../carbon-style-sheet/index.js"); var _index3 = require("../../contexts/index.js"); var _jsxRuntime = require("react/jsx-runtime"); function HeaderBorder({ flushAlignment, style: styleProp }) { (0, _react.useContext)(_index3.ThemeContext); return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, { style: [_index.CommonStyleSheet.absolute, style.borderBox, carbonStyle.borderBox, flushAlignment ? { left: _carbonReactNativeElements.Spacing.spacing_05, right: _carbonReactNativeElements.Spacing.spacing_05 } : _index.CommonStyleSheet.w_full, styleProp] }); } const style = _reactNative.StyleSheet.create({ borderBox: { height: 1, borderTopWidth: 1 } }), carbonStyle = _index2.CarbonStyleSheet.create({ borderBox: { borderColor: _index2.CarbonStyleSheet.color.border_subtle_00 } }); //# sourceMappingURL=_HeaderBorder.js.map