@@ -99,7 +99,7 @@ function headerStyle(
9999 } ;
100100}
101101
102- const getDynamicReactNativePropsForHeading : ElementModelBase < any > [ 'getDynamicReactNativeProps ' ] =
102+ const getReactNativePropsForHeading : ElementModelBase < any > [ 'getReactNativeProps ' ] =
103103 ( { domNode } ) => {
104104 const textLabel = textContent ( domNode ! ) ;
105105 return {
@@ -111,8 +111,8 @@ const getDynamicReactNativePropsForHeading: ElementModelBase<any>['getDynamicRea
111111 } ;
112112 } ;
113113
114- const getDynamicReactNativePropsWithHref : ElementModelBase < any > [ 'getDynamicReactNativeProps ' ] =
115- function getDynamicReactNativePropsWithHref ( { attributes } ) {
114+ const getReactNativePropsWithHref : ElementModelBase < any > [ 'getReactNativeProps ' ] =
115+ function getReactNativePropsWithHref ( { attributes } ) {
116116 if ( typeof attributes . href === 'string' && attributes . href . length > 0 ) {
117117 return {
118118 native : {
@@ -152,37 +152,37 @@ const sectioningModelMap: HTMLModelRecord<
152152 category : 'sectioning' ,
153153 tagName : 'h1' ,
154154 mixedUAStyles : headerStyle ( '2em' , '.67em' ) ,
155- getDynamicReactNativeProps : getDynamicReactNativePropsForHeading
155+ getReactNativeProps : getReactNativePropsForHeading
156156 } ) ,
157157 h2 : HTMLElementModel . fromNativeModel ( {
158158 category : 'sectioning' ,
159159 tagName : 'h2' ,
160160 mixedUAStyles : headerStyle ( '1.5em' , '.83em' ) ,
161- getDynamicReactNativeProps : getDynamicReactNativePropsForHeading
161+ getReactNativeProps : getReactNativePropsForHeading
162162 } ) ,
163163 h3 : HTMLElementModel . fromNativeModel ( {
164164 category : 'sectioning' ,
165165 tagName : 'h3' ,
166166 mixedUAStyles : headerStyle ( '1.17em' , '1em' ) ,
167- getDynamicReactNativeProps : getDynamicReactNativePropsForHeading
167+ getReactNativeProps : getReactNativePropsForHeading
168168 } ) ,
169169 h4 : HTMLElementModel . fromNativeModel ( {
170170 category : 'sectioning' ,
171171 tagName : 'h4' ,
172172 mixedUAStyles : headerStyle ( '1em' , '1.33em' ) ,
173- getDynamicReactNativeProps : getDynamicReactNativePropsForHeading
173+ getReactNativeProps : getReactNativePropsForHeading
174174 } ) ,
175175 h5 : HTMLElementModel . fromNativeModel ( {
176176 category : 'sectioning' ,
177177 tagName : 'h5' ,
178178 mixedUAStyles : headerStyle ( '.83em' , '1.67em' ) ,
179- getDynamicReactNativeProps : getDynamicReactNativePropsForHeading
179+ getReactNativeProps : getReactNativePropsForHeading
180180 } ) ,
181181 h6 : HTMLElementModel . fromNativeModel ( {
182182 category : 'sectioning' ,
183183 tagName : 'h6' ,
184184 mixedUAStyles : headerStyle ( '.67em' , '2.33em' ) ,
185- getDynamicReactNativeProps : getDynamicReactNativePropsForHeading
185+ getReactNativeProps : getReactNativePropsForHeading
186186 } ) ,
187187 header : HTMLElementModel . fromNativeModel ( {
188188 category : 'sectioning' ,
@@ -210,7 +210,7 @@ const unsupportedModelMap: HTMLModelRecord<
210210 tagName : 'area' ,
211211 category : 'untranslatable' ,
212212 isVoid : true ,
213- getDynamicReactNativeProps : getDynamicReactNativePropsWithHref
213+ getReactNativeProps : getReactNativePropsWithHref
214214 } ) ,
215215 map : HTMLElementModel . fromNativeModel ( {
216216 tagName : 'map' ,
@@ -556,7 +556,7 @@ const renderedEmbeddedModelMap: HTMLModelRecord<
556556 tagName : 'img' ,
557557 category : 'embedded' ,
558558 isVoid : true ,
559- getDynamicReactNativeProps ( { attributes } ) {
559+ getReactNativeProps ( { attributes } ) {
560560 // see https://w3c.github.io/html-aria/#el-img
561561 const label = attributes . alt || attributes [ 'aria-label' ] ;
562562 if ( label ) {
@@ -627,7 +627,7 @@ const emptyEmbeddedModelMap: HTMLModelRecord<
627627 category : 'embedded' ,
628628 isVoid : false , // allows svg elems
629629 isOpaque : true ,
630- getDynamicReactNativeProps ( { attributes } ) {
630+ getReactNativeProps ( { attributes } ) {
631631 if ( attributes [ 'aria-label' ] ) {
632632 return {
633633 native : {
@@ -850,7 +850,7 @@ const defaultHTMLElementModels = {
850850 return anchorStyle ;
851851 }
852852 } ,
853- getDynamicReactNativeProps : getDynamicReactNativePropsWithHref ,
853+ getReactNativeProps : getReactNativePropsWithHref ,
854854 setMarkersForTNode ( targetMarkers ) {
855855 targetMarkers . anchor = true ;
856856 }
0 commit comments