@@ -2,8 +2,7 @@ import React from 'react';
22import { InternalMixedRenderer } from '../render/render-types' ;
33import { TNode , DocumentContext } from '@native-html/transient-render-engine' ;
44import { InternalRendererProps , RenderersProps } from '../shared-types' ;
5- import { AccessibilityProps , GestureResponderEvent } from 'react-native' ;
6- import AElement from '../elements/AElement' ;
5+ import { GestureResponderEvent } from 'react-native' ;
76import useNormalizedUrl from '../hooks/useNormalizedUrl' ;
87import { useDocumentMetadata } from '../context/DocumentMetadataProvider' ;
98import { useRendererProps } from '../context/RenderersPropsProvider' ;
@@ -40,20 +39,14 @@ export function useAElementProps<T extends TNode>(
4039 if ( typeof syntheticAnchorOnLinkPress !== 'function' ) {
4140 return props ;
4241 }
43- const accessibilityProps : AccessibilityProps = {
44- accessible : true ,
45- accessibilityRole : 'link'
46- } ;
4742 return {
4843 ...props ,
49- onPress : syntheticAnchorOnLinkPress ,
50- textProps : accessibilityProps ,
51- viewProps : accessibilityProps
44+ onPress : syntheticAnchorOnLinkPress
5245 } ;
5346}
5447
5548const ARenderer : InternalMixedRenderer = ( props ) => {
56- return React . createElement ( AElement , useAElementProps ( props ) ) ;
49+ return React . createElement ( props . TDefaultRenderer , useAElementProps ( props ) ) ;
5750} ;
5851
5952export default ARenderer ;
0 commit comments