UNPKG

@wordpress/components

Version:
28 lines (26 loc) 670 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = BaseControl; var _reactNative = require("react-native"); var _jsxRuntime = require("react/jsx-runtime"); /** * External dependencies */ function BaseControl({ label, help, children }) { return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, { accessible: true, accessibilityLabel: label, children: [label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, { children: label }), children, help && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, { children: help })] }); } //# sourceMappingURL=index.native.js.map