RenderersProps
export
interface
RenderersProps
{
 Â
a
:
{
   Â
onPress
?
:
(
     Â
event
:
GestureResponderEvent
,
     Â
href
:
string
,
     Â
htmlAttribs
:
Record
<
string
,
string
>
,
     Â
target
:
"_blank"
       Â
|
"_self"
       Â
|
"_parent"
       Â
|
"_top"
   Â
)
=>
void
;
 Â
}
;
 Â
img
:
{
   Â
enableExperimentalPercentWidth
?
:
boolean
;
   Â
initialDimensions
?
:
ImageDimensions
;
 Â
}
;
 Â
ol
:
ListElementConfig
;
 Â
ul
:
ListElementConfig
;
}
Defined in packages/render-html/src/shared-types.ts
Props for custom renderers. The convention is to declare a field per tag name.
In doing so, you can benefit from useRendererProps('tagname')
in custom renderers.
Remarks
Typescript users: If you need to add fields to the ​RenderersProps
interface,
you should use module augmentation:
#
Fieldsa
#
required
a
:
{
 Â
onPress
?
:
(
   Â
event
:
GestureResponderEvent
,
   Â
href
:
string
,
   Â
htmlAttribs
:
Record
<
string
,
string
>
,
   Â
target
:
"_blank"
     Â
|
"_self"
     Â
|
"_parent"
     Â
|
"_top"
 Â
)
=>
void
;
}
;
img
#
required
ol
#
required
ul
#
required