Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help for Break Lines Implementation #647

Open
DeepakSharma04 opened this issue Nov 6, 2023 · 1 comment
Open

Need Help for Break Lines Implementation #647

DeepakSharma04 opened this issue Nov 6, 2023 · 1 comment

Comments

@DeepakSharma04
Copy link

DeepakSharma04 commented Nov 6, 2023

import React from 'react';
import { useWindowDimensions } from 'react-native';
import RenderHtml from 'react-native-render-html';

const source = {
  html: `<p>Okay nice to meet you</p>\n<div data-toggle=\"collapse\" data-target=\".ticket_break_hidden_area\" style=\"cursor: pointer;\">...</div><div class=\"collapse ticket_break_hidden_area\"><div><div><div><div><blockquote>On November 06, 2023 04:41 pm <strong>Indira V</strong> wrote :\n<figure>\n<p>Dear Team,</p>\n<p> </p>\n<p>Our company is growing, and there is a good inflow of projects every week. This has been possible with your dedicated and timely teamwork. In order to keep up with this, we have decided that the working hours would be advanced by 30 minutes.</p>\n<p> </p>\n<p>Feel free to come up with suggestions, if any.</p>\n<p> </p>\n<p>Warm regards,</p>\n<p>Your name</p>\n<p>Designation</p>\n</figure>\n</blockquote></div> `
};

export default function App() {
  const { width } = useWindowDimensions();
  return (
      <RenderHtml
        contentWidth={width}
        source={source}
        enableExperimentalMarginCollapsing={true}
    />
  );
}

Please help ,i want to add break lines implementation means when user click on ... dots it shows the email but it's display all the contents.

Screenshot 2023-11-06 at 4 57 25 PM
@DeepakSharma04 DeepakSharma04 changed the title Break Lines Implementation Need Help for Break Lines Implementation Nov 7, 2023
@DeepakSharma04
Copy link
Author

@jsamr can you please guide me how to implement it .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant