-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
tagsStyles doesn't re-render #343
Comments
Same issue here |
Same here any fix? |
Same issue here |
i have fix for this, you must declare a key for your render html once the key change it will trigger re-render of your component. hope this help |
I'm not quite sure by declare a key. Can you give me an example? (this is a beginner's question, my apologies) Thanks!! |
Yes this is working for me
…On Mon, Apr 13, 2020 at 5:44 PM Ferry Utomo ***@***.***> wrote:
i have fix for this, you must declare a key for your render html once the
key change it will trigger re-render of your component. hope this help
I'm not quite sure by declare a key. Can you give me an example? (this is
a beginner's question, my apologies) Thanks!!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#343 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADHUSHJKG4O2TPIOUPXEDXLRMLNJTANCNFSM4KYIEV3A>
.
|
Yes this is working but it's showing some latency while updating the font size. |
what do you mean by latency?
…On Wed, Apr 15, 2020 at 6:23 PM Aashish Singhal ***@***.***> wrote:
Yes this is working but it's showing some latency while updating the font
size.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#343 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADHUSHMPAQIYONA24GQVVSTRMWDIXANCNFSM4KYIEV3A>
.
|
let me explain you again what i am facing issue when i implemented key for html render. Screen always re-rendering, not seems like font size increasing and decreasing smoothly. I hope you got my point and please let me what approach i can use. If i applied this method forcefully in HTML library (node_modules/react-native-render-html/src/HTML.js ) : componentWillReceiveProps (nextProps) {
} Then it's work smoothly for font size increase and decreasing after changes with the slider bar but i thought it's not a good way to change in the library. So please guide me what approach i should follow. |
@aashish-pixere Try to replace If that fixes it, the issue may stem from a feedback loop. The component receives new props, the updates sets state which causes another update, and the process repeats indefinitely. |
Check this:
|
Hello guys, any update on this issue? I'm working in a product that is using this library, and I needed to use the key workaround. Thanks! |
In version 4.2.2, HTML component will re-render on tagsStyles and classesStyles changes. |
@jsamr thanks for react-native-render-html! Is possible re-render on Add |
@amdrade Don't really have much time for this right now, but a PR is welcome! |
@nsantacruz The dev/4.x branch had diverged from master at that point. I've ported the feature in the 5.1.0 release! |
Facing issue related to the RTL. The textAlign is ok, but the paragraph is not for example the Dot starting the paragraph instead of ending it. |
@rabiaah If you referring to lists, see https://meliorence.github.io/react-native-render-html/docs/content/lists#experimental-rtl-mode; please ask for anything else in our Discord channel! Thanks. |
Not really related to the lists, I have 2 issues in the attached screenshot:
|
@rabiaah Probably due to RTL not being enabled in your app with |
tagsStyles read the font size from store, and the font size changes with the slider bar value. I am sure that the component re-rendered, and I could get the value from store. But the font size in tagsStyles doesn't changes.
The text was updated successfully, but these errors were encountered: