Skip to content

ERROR Warning: bound renderChildren: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. #684

Open
@nguyenvuhoang

Description

@nguyenvuhoang

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCrush'em all.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions