UNPKG

react-web-native-sketch

Version:

[TODO: We need an overview of how this can be used via npm vs as a local package]

20 lines 815 B
"use strict"; var __assign = (this && this.__assign) || Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; Object.defineProperty(exports, "__esModule", { value: true }); var React = require("react"); var web_1 = require("../../utils/web"); exports.Text = function (_a) { var classes = _a.classes, children = _a.children, style = _a.style, onPress = _a.onPress, id = _a.id; return (React.createElement("span", __assign({ id: id }, web_1.getStyleProps(style), { onClick: onPress && (function (event) { event.preventDefault(); onPress(); }) }), children)); }; //# sourceMappingURL=Text.js.map