UNPKG

@gechiui/components

Version:
32 lines (27 loc) 656 B
import { createElement, Fragment } from "@gechiui/element"; /** * External dependencies */ import { View, Text } from 'react-native'; /** * GeChiUI dependencies */ import { withPreferredColorScheme } from '@gechiui/compose'; /** * Internal dependencies */ import styles from './style.scss'; const Badge = _ref => { let { label, children, show = true } = _ref; return createElement(Fragment, null, children, createElement(View, { style: styles.badgeContainer }, show && createElement(Text, { style: styles.badge }, label))); }; export default withPreferredColorScheme(Badge); //# sourceMappingURL=index.native.js.map