UNPKG

react-native-wishlist

Version:
17 lines (16 loc) 544 B
import { Text } from 'react-native'; import { createTemplateComponent } from '../createTemplateComponent'; export const WishlistText = createTemplateComponent(Text, (item, props) => { 'worklet'; var _item$RawText; const { children, ...other } = props; const value = typeof children === 'string' ? children : children.toString(); (_item$RawText = item.RawText) === null || _item$RawText === void 0 ? void 0 : _item$RawText.addProps({ text: value }); item.addProps(other); }); //# sourceMappingURL=WishlistText.js.map