-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
Doesn't handle incompatible value property #154
Comments
I think we should set up some kind of object that holds every conversion that needs to be done when a style property is available both in the browser and react native but with different accepted values. The current logic where This should be one of the last major steps towards being able to render any HTML string without crashing. |
I also have this crash!! Failed prop type: Invalid prop |
any follow up on this? |
For me its an invalid propety in 'letterSpacing' |
any one fixed this bug successful . I have faced it with props display 'inline': should be one of (flex, none) |
I have this issue too :
|
I have this issue too
|
I fixed this issue by adding ignoredStyles={['letter-spacing']} Prop. |
I have this issue too! |
Had the same issue with this library and spend almost 2 days trying to prevent the app from crashing. At the end i've fixed this issue in a different way. I have used the inbuilt WebView component for html rendering. Two issues i faced with WebView component are:
I've fixed both the above issues in the following way.
Hope this helps... |
What would be the simplest way of completely ignoring the |
ds8k !! was wondering the same. Ignoring styles fixed this issue. I ignored this by using this prop allowedStyles={[]} |
This solution worked well. |
Thanks @saadzaman !! Good to go |
ignoredStyles={['font-family', 'display','text-align',]} |
I have implemented a bunch of fixes, see #382, which should also fix what you've all encountered here. If you happen to still have an issue after release 4.2.2, please open an new ticket. Closing now, expecting release very soon. |
This issue will be fixed in version 4.2.2. |
Everytime i'm facing some HTML using property such as 'initial', 'normal', ect.
It is isn't handled properly by this library
I can't possibly ignore all these styling.
Using
react-native-render-html
:3.9.3
,The text was updated successfully, but these errors were encountered: