UNPKG

react-native-xenon

Version:

A powerful in-app debugging tool for React Native.

20 lines (19 loc) 520 B
"use strict"; import { Text } from 'react-native'; import { shareText } from "../../../core/utils.js"; import { jsx as _jsx } from "react/jsx-runtime"; export default function ShareableText({ children, ...props }) { return /*#__PURE__*/_jsx(Text, { selectionColor: 'transparent', suppressHighlighting: true, onLongPress: async () => { shareText(Array.isArray(children) ? children.join('') : children); }, ...props, children: children }); } //# sourceMappingURL=ShareableText.js.map