1import React, { forwardRef } from 'react'; 2import { Linking, Platform } from 'react-native'; 3import Text from '../primitives/Text'; 4export const A = forwardRef(({ href, target, ...props }, ref) => { 5 const nativeProps = Platform.select({ 6 web: { 7 href, 8 target, 9 }, 10 default: { 11 onPress: (event) => { 12 props.onPress && props.onPress(event); 13 if (Platform.OS !== 'web' && href !== undefined) { 14 Linking.openURL(href); 15 } 16 }, 17 }, 18 }); 19 return React.createElement(Text, { accessibilityRole: "link", ...props, ...nativeProps, ref: ref }); 20}); 21//# sourceMappingURL=Anchor.js.map