question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't handle incompatible value property

See original GitHub issue

Everytime i’m facing some HTML using property such as ‘initial’, ‘normal’, ect. It is isn’t handled properly by this library

Warning: Failed prop type: Invalid prop `textDecorationColor` supplied to `Text`: initial
Warning: Failed prop type: Invalid prop `display` of value `inline` supplied to `Text`, expected one of ["none","flex"]
Warning: Failed prop type: Invalid prop `letterSpacing` of type `string` supplied to `Text`, expected `number`.
Bad object: {
  "letterSpacing": "normal"
}
Warning: Failed prop type: Invalid prop `textDecorationStyle` of value `initial` supplied to `Text`, expected one of ["solid","double","dotted","dashed"].
Failed prop type: Invalid prop `textAlign` of value `start` supplied to `Text`, expected one of ["auto","left","right","center","justify"].

I can’t possibly ignore all these styling.

Using react-native-render-html: 3.9.3,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
saadzamancommented, Mar 25, 2019

ds8k !! was wondering the same. Ignoring styles fixed this issue. I ignored this by using this prop allowedStyles={[]}

5reactions
sorakrisccommented, Aug 8, 2018

any follow up on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Doesn't handle incompatible value property #154 - GitHub
Everytime i'm facing some HTML using property such as 'initial', 'normal', ect. It is isn't handled properly by this library Warning: Failed ...
Read more >
How to Handle the Incompatible Types Error in Java - Rollbar
The Java incompatible types error happens when a value assigned to a variable or returned by a method is incompatible with the one...
Read more >
Property 'value' does not exist on type EventTarget in TypeScript
Property 'value' does not exist on type 'EventTarget'. But as it can be seen in the console.log that value does exist on the...
Read more >
5 CSS properties and values that are incompatible
In this article, we looked at five such combinations which are: position: static and z-index: n.
Read more >
How to fix property not existing on EventTarget in TypeScript
This error occurs when you try to access a property on an event target in TypeScript. Property 'value' does not exist on type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found