react-native-markdown-display icon indicating copy to clipboard operation
react-native-markdown-display copied to clipboard

`defaultProps` warning

Open MartinCura opened this issue 10 months ago • 0 comments

Hi there 👋🏼 Thanks for this awesome library.

We're using React 18.3.1 (and React Native 0.76.6, planning to possibly upgrade to React 19 at some point), and we get the following warning when using <Markdown>.

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

Not sure if updating the code to stop using defaultProps is within your plans but i wanted to mention it for visibility.

In our case as this pkg fulfills our needs for the moment i guess we'll just be ignoring this warning for the moment. Thank you.

MartinCura avatar Feb 14 '25 12:02 MartinCura