Open
Description
Decision Table
- My issue does not look like “The HTML attribute 'xxx' is ignored” (unless we claim support for it)
- My issue does not look like “The HTML element
<yyy>
is not rendered”
Good Faith Declaration
- I have read the HELP document here: https://git.io/JBi6R
- I have read the CONTRIBUTING document here: https://git.io/JJ0Pg
- I have confirmed that this bug has not been reported yet
Description
ERROR Warning: bound renderChildren: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
React Native Information
<RenderHTML
contentWidth={screenWidth - 32}
source={{ html: `<div>${item.message}</div>` }}
tagsStyles={htmlTagStyles}
defaultTextProps={{ selectable: false }}
enableExperimentalMarginCollapsing={true}
/>
RNRH Version
<RenderHTML
contentWidth={screenWidth - 32}
source={{ html: <div>${item.message}</div>
}}
tagsStyles={htmlTagStyles}
defaultTextProps={{ selectable: false }}
enableExperimentalMarginCollapsing={true}
/>
Tested Platforms
- Android
- iOS
- Web
- MacOS
- Windows
Reproduction Platforms
- Android
- iOS
- Web
- MacOS
- Windows
Minimal, Reproducible Example
<RenderHTML
contentWidth={screenWidth - 32}
source={{ html: <div>${item.message}</div>
}}
tagsStyles={htmlTagStyles}
defaultTextProps={{ selectable: false }}
enableExperimentalMarginCollapsing={true}
/>
Additional Notes
No response