Retrieving content from CommentInput is one thing, parsing it to display it in a Comment view is another. To avoid complication, a set of Components is provided and now CommentInput and CoreInput can provide content in array of objects.
Input ContentParts:
Prop contentType can be 'string' | 'parts'.
stringlike'Hello {{1}}'partslike{ type: 'text', data: 'Hello ', type: 'mention', data: { id: 1, name: 'KeitelDOG', image: 'image-url' }}
Comment:
New components:
Commentcomplete, usingCommentHeader,ShowMoreTextwrappingCommentContentCommentHeaderCommentContentShowMoreTextto wrapCommentContentif needed. It uses-webkit-line-clampand-webkit-boxdisplay with height calculation.