react-native-wishlist
Version:
The fastest List component for React Native.
17 lines (16 loc) • 544 B
JavaScript
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