UNPKG

@gechiui/components

Version:
31 lines (26 loc) 678 B
import { createElement } from "@gechiui/element"; /** * External dependencies */ import { Text, Linking } from 'react-native'; /** * GeChiUI dependencies */ import { usePreferredColorSchemeStyle } from '@gechiui/compose'; /** * Internal dependencies */ import styles from './styles.scss'; function FooterMessageLink(_ref) { let { href, value } = _ref; const textStyle = usePreferredColorSchemeStyle(styles.footerMessageLink, styles.footerMessageLinkDark); return createElement(Text, { style: textStyle, onPress: () => Linking.openURL(href) }, value); } export default FooterMessageLink; //# sourceMappingURL=footer-message-link.native.js.map