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

Crash: text-align: start error: should be one of auto, center, justify, left, right. #252

Closed
Donhv opened this issue Apr 4, 2019 · 10 comments
Labels
bug:easyfix Easily fixed. bug Crush'em all. domain:css Related to inline CSS.

Comments

@Donhv
Copy link

Donhv commented Apr 4, 2019

Is this a bug report or a feature request?
Bug report

Have you read the guidelines regarding bug report?
no

Have you read the documentation in its entirety?
yes

Have you made sure that your issue hasn't already been reported/solved?
yes

Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
I have only checked on Android

Is the bug reproductible in a production environment (not a debug one)?
debug doesn't run

Have you been able to reproduce the bug in the provided example?
no

Environment
Environment:
React: ^16.3.1
React native: ^0.55.4
react-native-render-html: ^3.10.0

Target Platform:
Android (6.0)
iOS (10.3)

Hi all, my app crash because css style: "text-align:start", text-decoration-style:initial", "font-family: "" "
now, i use: ignoredStyles={['text-align', 'text-decoration-style', 'text-decoration-color','font-family']} to prevent it, but i don't know when have more css style make crash.
How can i always prevent it?

@nadav2051
Copy link

Same problem, can we just ignore or throw a warning rather than crash when encountering un-renderable CSS property?

@sumudu-dewasurendra
Copy link

sumudu-dewasurendra commented Jun 25, 2019

@nadav2051 even for the "display" style same happens. Are there any way to fix this problem? Coz using ignore is not the way to handle this

@nadav2051

This comment has been minimized.

@diamont1001

This comment has been minimized.

@zarcode

This comment has been minimized.

2 similar comments
@axu6705
Copy link

axu6705 commented Jan 6, 2020

+1

@yuezonglun
Copy link

+1

@matthiaskoenig96

This comment has been minimized.

@jsamr jsamr added bug Crush'em all. bug:easyfix Easily fixed. domain:css Related to inline CSS. labels Jul 4, 2020
@Lucasark

This comment has been minimized.

@jsamr
Copy link
Collaborator

jsamr commented Jul 10, 2020

In the next major release, we are considering using https://github.com/styled-components/css-to-react-native to overcome this kind of issues. In the meantime, we might release a hotfix for text-align rules.

@Lucasark Please post your question on stackoverflow with the react-native-render-html tag, we will be happy to help you here.

@meliorence meliorence locked and limited conversation to collaborators Jul 10, 2020
jsamr added a commit that referenced this issue Jul 17, 2020
jsamr added a commit that referenced this issue Jul 17, 2020
@jsamr jsamr closed this as completed in 8788451 Jul 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug:easyfix Easily fixed. bug Crush'em all. domain:css Related to inline CSS.
Projects
None yet
Development

No branches or pull requests

10 participants